change from sscanf to strtol

Original commit message from CVS:
change from sscanf to strtol
This commit is contained in:
David Schleef 2003-05-18 22:41:25 +00:00
parent 8b9a229402
commit ac8e84fb8e

View file

@ -320,12 +320,7 @@ load_plugin_func (gpointer data, gpointer user_data)
static void
parse_number (const gchar *number, gint32 *val)
{
/* handle either 0xHEX or dec */
if (*(number+1) == 'x') {
sscanf (number+2, "%08x", val);
} else {
sscanf (number, "%d", val);
}
*val = strtol(number,NULL,0);
}
static void