diff -r 9b5eb283f01c -r 8cba93978730 finch/gntrequest.c --- a/finch/gntrequest.c Wed May 30 06:20:47 2007 +0000 +++ b/finch/gntrequest.c Wed May 30 06:25:46 2007 +0000 @@ -672,10 +672,13 @@ pt = purple_prefs_get_type(id); switch (pt) { case PURPLE_PREF_INT: + { + long int tmp; if (type == PURPLE_REQUEST_FIELD_LIST) /* Lists always return string */ - sscanf(val, "%ld", (long int *)&val); - purple_prefs_set_int(id, GPOINTER_TO_INT(val)); + sscanf(val, "%ld", &tmp); + purple_prefs_set_int(id, (gint)tmp); break; + } case PURPLE_PREF_BOOLEAN: purple_prefs_set_bool(id, GPOINTER_TO_INT(val)); break;