From f7703533a4d6bac9ba708218a3244cdc60376446 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Tue, 26 Mar 2013 23:47:25 -0400 Subject: tests: fix size_t in format string --- src/test/test-strxcpyx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/test-strxcpyx.c b/src/test/test-strxcpyx.c index 9b4dae805f..b7b70d4c15 100644 --- a/src/test/test-strxcpyx.c +++ b/src/test/test-strxcpyx.c @@ -48,7 +48,7 @@ static void test_strpcpyf(void) { size_t space_left; space_left = sizeof(target); - space_left = strpcpyf(&s, space_left, "space left: %ld. ", space_left); + space_left = strpcpyf(&s, space_left, "space left: %zd. ", space_left); space_left = strpcpyf(&s, space_left, "foo%s", "bar"); assert(streq(target, "space left: 25. foobar")); -- cgit v1.2.3-54-g00ecf