[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#568648: grig crashes on mouse click between freq display digits

Package: grig
Version: 0.7.2-3
Severity: important
Tags: patch

We have applied the attached patch in Ubuntu Lucid, to fix the following bug.
This change has also been applied upstream at Sourceforge.  Perhaps Debian
would like to apply the change as well:


    grig 0.7.2 Ubuntu Karmic

    (Reproducible on amd64 but not i386)
    1. Run grig
    2. Mouse click in the space *between* the "145" and the "000" (not on any
    grig crashes with Segmentation fault.
=== modified file 'src/rig-gui-lcd.c'
--- old/src/rig-gui-lcd.c	2006-07-25 00:03:43 +0000
+++ new/src/rig-gui-lcd.c	2010-02-05 22:36:18 +0000
@@ -810,7 +810,7 @@
 rig_gui_lcd_get_event_object (GdkEvent *event)
 	guint x,y;    /* coordinates */
-	guint i;
+	gint i;
 	x = (guint) ((GdkEventButton*)event)->x;
 	y = (guint) ((GdkEventButton*)event)->y;

Reply to: