From a248f5abd0749e53e45a8a8f92003cd17f1c6732 Mon Sep 17 00:00:00 2001 From: Lloyd Hilaiel Date: Sat, 12 Sep 2009 09:22:13 -0600 Subject: always use a format string with fprintf, silence compiler warnings. shhh. --- reformatter/json_reformat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'reformatter') 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; -- cgit v1.2.1