fix some compiler warnings

This commit is contained in:
Michael Stapelberg
2011-02-01 15:43:59 +01:00
parent 8f4b9ddaa4
commit 0238ce3c73
3 changed files with 7 additions and 7 deletions

View File

@ -197,7 +197,7 @@ void tree_append_json(const char *filename) {
stat != yajl_status_insufficient_data)
{
unsigned char * str = yajl_get_error(hand, 1, (const unsigned char*)buf, n);
fprintf(stderr, (const char *) str);
fprintf(stderr, "%s\n", (const char *) str);
yajl_free_error(hand, str);
}