Package: bidwatcher Version: 1.3.17-1 Severity: important Tags: patch When changing the fonts under the configuration 'Fonts' tab, and the new font cannot be loaded by GTK, the program segfaults.
The patch below fixes the problem, while also alerting the user when the selected font is invalid. -- System Information: Debian Release: testing/unstable APT prefers testing APT policy: (990, 'testing'), (500, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.12.3 Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Versions of packages bidwatcher depends on: ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries an ii libcurl3 7.14.0-2 Multi-protocol file transfer libra ii libgcc1 1:4.0.1-2 GCC support library ii libglib1.2 1.2.10-10 The GLib library of C routines ii libgtk1.2 1.2.10-17 The GIMP Toolkit set of widgets fo ii libidn11 0.5.13-1.0 GNU libidn library, implementation ii libssl0.9.7 0.9.7e-3 SSL shared libraries ii libstdc++5 1:3.3.5-13 The GNU Standard C++ Library v3 ii libx11-6 4.3.0.dfsg.1-14 X Window System protocol client li ii libxext6 4.3.0.dfsg.1-14 X Window System miscellaneous exte ii libxi6 4.3.0.dfsg.1-14 X Window System Input extension li ii xlibs 4.3.0.dfsg.1-14 X Keyboard Extension (XKB) configu ii zlib1g 1:1.2.2-4 compression library - runtime bidwatcher recommends no packages. -- no debconf information *** patch --- bidwatcher-1.3.17/bidwatcher.cpp 2005-08-09 23:30:26.000000000 +0200 +++ bidwatcher-1.3.17-NEW/bidwatcher.cpp 2005-08-15 13:41:47.000000000 +0200 @@ -1087,6 +1087,7 @@ void configok_callback (GtkWidget *widget, gpointer data) { char encpassword[76]; + static char failedfont[64] = "Failed to load font: "; snipeDelay = gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON (confwindow-> @@ -1131,7 +1132,9 @@ //gdk_font_unref(fixed_font); fixed_font = gdk_font_load(fixedFont); if (!fixed_font) { - gdk_font_load(FONT_FIX_DFL); + strncpy( failedfont+21, fixedFont, 64-21-1 ); + showBidStatus( failedfont ); + fixed_font = gdk_font_load(FONT_FIX_DFL); strcpy(fixedFont, FONT_FIX_DFL); } @@ -1139,7 +1142,9 @@ //gdk_font_unref(clean14); clean14 = gdk_font_load(cleanFont); if (!clean14) { - gdk_font_load(FONT_CLEAN_DFL); + strncpy( failedfont+21, cleanFont, 64-21-1 ); + showBidStatus( failedfont ); + clean14 = gdk_font_load(FONT_CLEAN_DFL); strcpy(cleanFont, FONT_CLEAN_DFL); } -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]