From: David Schleef Date: Fri, 3 Dec 2010 19:29:30 +0000 (-0800) Subject: Use g_snprintf() instead of snprintf() X-Git-Tag: RELEASE-0.10.32~208 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=66d278187752fd9b968783ad65cebeabc920c1d4;p=platform%2Fupstream%2Fgstreamer.git Use g_snprintf() instead of snprintf() --- diff --git a/gst/gstobject.c b/gst/gstobject.c index cac8fa9..86948a6 100644 --- a/gst/gstobject.c +++ b/gst/gstobject.c @@ -95,8 +95,6 @@ static GstAllocTrace *_gst_object_trace; #endif -#include - #define DEBUG_REFCOUNT /* Object signals and args */ @@ -645,7 +643,7 @@ gst_object_set_name_default (GstObject * object) name = g_malloc (l + 6 + 1); for (i = 0; i < l; i++) name[i] = g_ascii_tolower (type_name[i]); - snprintf (&name[i], 6, "%d", count); + g_snprintf (&name[i], 6, "%d", count); GST_OBJECT_LOCK (object); if (G_UNLIKELY (object->parent != NULL))