Commit 66d27818 authored by David Schleef's avatar David Schleef
Browse files

Use g_snprintf() instead of snprintf()

parent b813e7d8
...@@ -95,8 +95,6 @@ ...@@ -95,8 +95,6 @@
static GstAllocTrace *_gst_object_trace; static GstAllocTrace *_gst_object_trace;
#endif #endif
#include <stdio.h>
#define DEBUG_REFCOUNT #define DEBUG_REFCOUNT
/* Object signals and args */ /* Object signals and args */
...@@ -645,7 +643,7 @@ gst_object_set_name_default (GstObject * object) ...@@ -645,7 +643,7 @@ gst_object_set_name_default (GstObject * object)
name = g_malloc (l + 6 + 1); name = g_malloc (l + 6 + 1);
for (i = 0; i < l; i++) for (i = 0; i < l; i++)
name[i] = g_ascii_tolower (type_name[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); GST_OBJECT_LOCK (object);
if (G_UNLIKELY (object->parent != NULL)) if (G_UNLIKELY (object->parent != NULL))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment