From 37960c1b394fb5100fe9660b4ac1987234162478 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Fri, 16 Jul 2004 13:31:28 +0000 Subject: [PATCH] fix #147707 blocker Original commit message from CVS: fix #147707 blocker --- ChangeLog | 5 +++++ gst/gstvalue.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index fc05ba4..57f7aba 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2004-07-16 Thomas Vander Stichele + * gst/gstvalue.c: (gst_value_deserialize_fraction): + change strndup to g_strndup. Fixes #147707 + +2004-07-16 Thomas Vander Stichele + * po/af.po: * po/az.po: * po/cs.po: diff --git a/gst/gstvalue.c b/gst/gstvalue.c index b87f4fc..ad05310 100644 --- a/gst/gstvalue.c +++ b/gst/gstvalue.c @@ -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); -- 2.7.4