]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/test/test-libudev.c
tree-wide: use xsprintf() where applicable
[thirdparty/systemd.git] / src / test / test-libudev.c
index 350eaf734dd1d040829707aea5aafd06e0c452c6..94d852b3b0c5d9cb5740f32f700006c8c88662d5 100644 (file)
@@ -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;
         }