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:
a58702d
)
registrychunks: Fix a debug format string harder to satisfy OS/X's gcc.
author
Jan Schmidt
<thaytan@noraisin.net>
Thu, 8 Oct 2009 15:21:45 +0000
(16:21 +0100)
committer
Jan Schmidt
<thaytan@noraisin.net>
Thu, 8 Oct 2009 15:21:45 +0000
(16:21 +0100)
gst/gstregistrychunks.c
patch
|
blob
|
history
diff --git
a/gst/gstregistrychunks.c
b/gst/gstregistrychunks.c
index
8fe089d
..
9e20ef4
100644
(file)
--- a/
gst/gstregistrychunks.c
+++ b/
gst/gstregistrychunks.c
@@
-63,8
+63,8
@@
_strnlen (const gchar * str, gint maxlen)
#define unpack_element(inptr, outptr, element, endptr, error_label) G_STMT_START{ \
if (inptr + sizeof(element) > endptr) { \
GST_ERROR ("Failed reading element " G_STRINGIFY (element) \
- ". Have %
" G_GSSIZE_FORMAT "
bytes need %" G_GSSIZE_FORMAT, \
-
endptr - inptr
, sizeof(element)); \
+ ". Have %
d
bytes need %" G_GSSIZE_FORMAT, \
+
(int) (endptr - inptr)
, sizeof(element)); \
goto error_label; \
} \
outptr = (element *) inptr; \