summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-03-26 23:47:25 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-03-26 23:50:44 -0400
commitf7703533a4d6bac9ba708218a3244cdc60376446 (patch)
tree8ad6485fb74486ca34c9d0ac4e7670b7101b2603 /src
parent3baed19327663d012c3313b72cc5b3d02a58720a (diff)
tests: fix size_t in format string
Diffstat (limited to 'src')
-rw-r--r--src/test/test-strxcpyx.c2
1 files changed, 1 insertions, 1 deletions
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"));