summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test')
-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"));