aboutgitcodebugslistschat
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2025-03-18 17:18:47 +0100
committerStefano Brivio <sbrivio@redhat.com>2025-03-18 17:18:47 +0100
commit51f3c071a76bd20677e72b49007b822dca71e755 (patch)
tree9e9d9a3c41d3ea0713412f7cb5aeaeda42936b88
parentcb5b593563402680bee850245667f2e71b0d1bda (diff)
downloadpasst-51f3c071a76bd20677e72b49007b822dca71e755.tar
passt-51f3c071a76bd20677e72b49007b822dca71e755.tar.gz
passt-51f3c071a76bd20677e72b49007b822dca71e755.tar.bz2
passt-51f3c071a76bd20677e72b49007b822dca71e755.tar.lz
passt-51f3c071a76bd20677e72b49007b822dca71e755.tar.xz
passt-51f3c071a76bd20677e72b49007b822dca71e755.tar.zst
passt-51f3c071a76bd20677e72b49007b822dca71e755.zip
passt-repair: Fix build with -Werror=format-security
Fixes: 04701702471e ("passt-repair: Add directory watch") Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rw-r--r--passt-repair.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/passt-repair.c b/passt-repair.c
index 8bb3f00..120f7aa 100644
--- a/passt-repair.c
+++ b/passt-repair.c
@@ -150,7 +150,7 @@ int main(int argc, char **argv)
_exit(1);
}
- ret = snprintf(a.sun_path, sizeof(a.sun_path), path);
+ ret = snprintf(a.sun_path, sizeof(a.sun_path), "%s", path);
inotify_dir = true;
} else {
ret = snprintf(a.sun_path, sizeof(a.sun_path), "%s", argv[1]);