diff options
author | Mateusz Loskot <mateusz@loskot.net> | 2012-06-19 20:15:44 +0100 |
---|---|---|
committer | Eric Haszlakiewicz <erh+git@nimenees.com> | 2012-12-09 15:53:21 -0600 |
commit | 5c2a69a8b8f863d057067b69e2658ef480eb1987 (patch) | |
tree | 5cfe652cf3c5a72f5e5039d438fc004dc1b0b342 /tests/test_printbuf.c | |
parent | 4392b22e805599dfd20a5920ec2fd24a85f95af0 (diff) | |
download | json-c-0.10.tar.gz |
Added a bunch of missing HAVE_* defines tested with ./configure script to fix compilation on Linux with GCC 4.7.1. The issue likely caused by my previous commits related to Visual C++ port of the code.json-c-0.10
Diffstat (limited to 'tests/test_printbuf.c')
-rw-r--r-- | tests/test_printbuf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_printbuf.c b/tests/test_printbuf.c index 3676b54..ee3f80d 100644 --- a/tests/test_printbuf.c +++ b/tests/test_printbuf.c @@ -124,7 +124,7 @@ static void test_sprintbuf(int before_resize) memset(data, 'X', before_resize + 1 + 1); data[before_resize + 1] = '\0'; sprintbuf(pb, "%s", data); - printf("sprintbuf to just after resize(%d+1): %d, [%s], strlen(buf)=%d\n", before_resize, printbuf_length(pb), pb->buf, strlen(pb->buf)); + printf("sprintbuf to just after resize(%d+1): %d, [%s], strlen(buf)=%d\n", before_resize, printbuf_length(pb), pb->buf, (int)strlen(pb->buf)); printbuf_reset(pb); sprintbuf(pb, "plain"); |