diff options
Diffstat (limited to 'tests')
-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"); |