diff options
author | David Schleef <ds@schleef.org> | 2010-12-03 11:29:30 -0800 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2010-12-03 11:29:30 -0800 |
commit | 66d278187752fd9b968783ad65cebeabc920c1d4 (patch) | |
tree | 44e6ab0026d945ee630d8e3038adeb27820171ea | |
parent | b813e7d8a6f4a2499b45e0cd8adf9b0579b642b4 (diff) |
Use g_snprintf() instead of snprintf()
-rw-r--r-- | gst/gstobject.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gst/gstobject.c b/gst/gstobject.c index cac8fa90b5..86948a6231 100644 --- a/gst/gstobject.c +++ b/gst/gstobject.c @@ -95,8 +95,6 @@ static GstAllocTrace *_gst_object_trace; #endif -#include <stdio.h> - #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)) |