1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-07 09:56:51 +03:00

tests: fix size_t in format string

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2013-03-26 23:47:25 -04:00
parent 3baed19327
commit f7703533a4

View File

@ -48,7 +48,7 @@ static void test_strpcpyf(void) {
size_t space_left; size_t space_left;
space_left = sizeof(target); 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"); space_left = strpcpyf(&s, space_left, "foo%s", "bar");
assert(streq(target, "space left: 25. foobar")); assert(streq(target, "space left: 25. foobar"));