X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=utils%2Fresources.c;h=980878204d78e657e0f11a8989051d8ff3228c52;hp=fc5cea13e7f7e9d25681e0c48452acbf240b2e02;hb=6a1da724858673ac40aa13a9612340d8bed8c7b9;hpb=96bdd7cf6ea60c418a76921acaf0e34d6f5be930 diff --git a/utils/resources.c b/utils/resources.c index fc5cea13..98087820 100644 --- a/utils/resources.c +++ b/utils/resources.c @@ -1,4 +1,4 @@ -/* xscreensaver, Copyright (c) 1992, 1997, 1998, 2001 +/* xscreensaver, Copyright (c) 1992, 1997, 1998, 2001, 2003 * Jamie Zawinski * * Permission to use, copy, modify, distribute, and sell this software and its @@ -91,7 +91,7 @@ get_integer_resource (char *res_name, char *res_class) if (ss[0] == '0' && (ss[1] == 'x' || ss[1] == 'X')) /* 0x: parse as hex */ { - if (1 == sscanf (ss+2, "%x %c", &val, &c)) + if (1 == sscanf (ss+2, "%x %c", (unsigned int *) &val, &c)) { free (s); return val;