fix #147707 blocker
authorThomas Vander Stichele <thomas@apestaart.org>
Fri, 16 Jul 2004 13:31:28 +0000 (13:31 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Fri, 16 Jul 2004 13:31:28 +0000 (13:31 +0000)
Original commit message from CVS:
fix #147707 blocker

ChangeLog
gst/gstvalue.c

index fc05ba4..57f7aba 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 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>
+
        * po/af.po:
        * po/az.po:
        * po/cs.po:
index b87f4fc..ad05310 100644 (file)
@@ -2494,7 +2494,7 @@ gst_value_deserialize_fraction (GValue * dest, const char *s)
   div = strstr (s, "/");
   if (!div)
     return FALSE;
-  tmp = strndup (s, (size_t) (div - s));
+  tmp = g_strndup (s, (size_t) (div - s));
   num = atoi (tmp);
   free (tmp);
   den = atoi (div + 1);