diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-01-12 16:03:48 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-01-12 16:03:48 +0100 |
commit | 45630488f9dc510c0b9da1932c5046160e6871ec (patch) | |
tree | 43606871b8012973ac6f3936d4887a5c658ce097 /src/test/test-libudev.c | |
parent | 1f52a79d4eb0216bf1f2d96539609f02d8bb9e71 (diff) | |
parent | d054f0a4d451120c26494263fc4dc175bfd405b1 (diff) |
Merge pull request #2308 from zonque/xsprintf
tree-wide: use xsprintf() where applicable
Diffstat (limited to 'src/test/test-libudev.c')
-rw-r--r-- | src/test/test-libudev.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/test-libudev.c b/src/test/test-libudev.c index 350eaf734d..94d852b3b0 100644 --- a/src/test/test-libudev.c +++ b/src/test/test-libudev.c @@ -25,6 +25,7 @@ #include "libudev.h" +#include "stdio-util.h" #include "string-util.h" #include "udev-util.h" #include "util.h" @@ -460,7 +461,7 @@ int main(int argc, char *argv[]) { /* add sys path if needed */ if (!startswith(syspath, "/sys")) { - snprintf(path, sizeof(path), "/sys/%s", syspath); + xsprintf(path, "/sys/%s", syspath); syspath = path; } |