summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLloyd Hilaiel <lloyd@hilaiel.com>2009-09-12 09:22:13 -0600
committerLloyd Hilaiel <lloyd@hilaiel.com>2009-09-12 09:22:13 -0600
commita248f5abd0749e53e45a8a8f92003cd17f1c6732 (patch)
tree982e0c27d497c690173eb9cbde1b5801693830dc /test
parent3d77db19acfe6060749c01098e7faa62ccb8b64f (diff)
downloadyajl-a248f5abd0749e53e45a8a8f92003cd17f1c6732.tar.gz
always use a format string with fprintf, silence compiler warnings. shhh.1.0.6
Diffstat (limited to 'test')
-rw-r--r--test/yajl_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/yajl_test.c b/test/yajl_test.c
index f2c070f..7e5d206 100644
--- a/test/yajl_test.c
+++ b/test/yajl_test.c
@@ -266,7 +266,7 @@ main(int argc, char ** argv)
{
unsigned char * str = yajl_get_error(hand, 0, fileData, rd);
fflush(stdout);
- fprintf(stderr, (char *) str);
+ fprintf(stderr, "%s", (char *) str);
yajl_free_error(hand, str);
break;
}