projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b813e7d
)
Use g_snprintf() instead of snprintf()
author
David Schleef
<ds@schleef.org>
Fri, 3 Dec 2010 19:29:30 +0000
(11:29 -0800)
committer
David Schleef
<ds@schleef.org>
Fri, 3 Dec 2010 19:29:30 +0000
(11:29 -0800)
gst/gstobject.c
patch
|
blob
|
history
diff --git
a/gst/gstobject.c
b/gst/gstobject.c
index
cac8fa9
..
86948a6
100644
(file)
--- 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))