mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
change from sscanf to strtol
Original commit message from CVS: change from sscanf to strtol
This commit is contained in:
parent
8b9a229402
commit
ac8e84fb8e
1 changed files with 1 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue