Package: gnome-swallow-applet Version: 1.2-1.1.1 The gnome-swallow-applet crashes with a SEGV on arch amd64. The problem is caused by two calls to gettimeofday() that don't pass in a timezone parameter. The attached patch corrects it.
-- Mike Stroyan, [EMAIL PROTECTED]
--- gnome-swallow-1.2/gnome-swallow.c 2003-09-11 22:21:55.000000000 -0600 +++ gnome-swallow-1.2-1.1.1/gnome-swallow.c 2005-10-12 15:25:54.000000000 -0600 @@ -2,6 +2,7 @@ #include <stdio.h> #include <signal.h> #include <sys/wait.h> +#include <sys/time.h> #include <gtk/gtklabel.h> #include <gtk/gtkfilesel.h> @@ -49,13 +50,14 @@ int x, y, junk; double start, now; struct timeval tv; + struct timezone tz; char ret; if(! display) return; /* WTF? */ XSync (display, FALSE); - gettimeofday(&tv); + gettimeofday(&tv, &tz); now = start = (double)tv.tv_sec + ((double)tv.tv_usec / 1000000.0); while (ready == FALSE && now < (start + 10.0)) @@ -131,7 +133,7 @@ fprintf(stderr,"Loop"); gtk_main_iteration_do(FALSE); - gettimeofday(&tv); + gettimeofday(&tv, &tz); now = (double)tv.tv_sec + ((double)tv.tv_usec / 1000000.0); }