Original commit message from CVS:
fix #147707 blocker
This commit is contained in:
Thomas Vander Stichele 2004-07-16 13:31:28 +00:00
parent 3cd03dffae
commit 37960c1b39
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2004-07-16 Thomas Vander Stichele <thomas at apestaart dot org>
* gst/gstvalue.c: (gst_value_deserialize_fraction):
change strndup to g_strndup. Fixes #147707
2004-07-16 Thomas Vander Stichele <thomas at apestaart dot org> 2004-07-16 Thomas Vander Stichele <thomas at apestaart dot org>
* po/af.po: * po/af.po:

View file

@ -2494,7 +2494,7 @@ gst_value_deserialize_fraction (GValue * dest, const char *s)
div = strstr (s, "/"); div = strstr (s, "/");
if (!div) if (!div)
return FALSE; return FALSE;
tmp = strndup (s, (size_t) (div - s)); tmp = g_strndup (s, (size_t) (div - s));
num = atoi (tmp); num = atoi (tmp);
free (tmp); free (tmp);
den = atoi (div + 1); den = atoi (div + 1);