mirror of
https://github.com/systemd/systemd.git
synced 2024-11-07 01:27:11 +03:00
tests: fix size_t in format string
This commit is contained in:
parent
3baed19327
commit
f7703533a4
@ -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"));
|
||||
|
Loading…
Reference in New Issue
Block a user