summaryrefslogtreecommitdiff
path: root/reformatter
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 /reformatter
parent3d77db19acfe6060749c01098e7faa62ccb8b64f (diff)
downloadyajl-a248f5abd0749e53e45a8a8f92003cd17f1c6732.tar.gz
always use a format string with fprintf, silence compiler warnings. shhh.1.0.6
Diffstat (limited to 'reformatter')
-rw-r--r--reformatter/json_reformat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/reformatter/json_reformat.c b/reformatter/json_reformat.c
index 01fa375..cfe043d 100644
--- a/reformatter/json_reformat.c
+++ b/reformatter/json_reformat.c
@@ -195,7 +195,7 @@ main(int argc, char ** argv)
stat != yajl_status_insufficient_data)
{
unsigned char * str = yajl_get_error(hand, 1, fileData, rd);
- fprintf(stderr, (const char *) str);
+ fprintf(stderr, "%s", (const char *) str);
yajl_free_error(hand, str);
retval = 1;
break;