aboutgitcodebugslistschat
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2025-03-18 17:18:47 +0100
committerDavid Gibson <david@gibson.dropbear.id.au>2025-04-02 14:32:10 +1100
commitf45aac7aed2a3b8886fe88f39709e4e9893dbe99 (patch)
tree4119a271d1d602ae6a4bed5dea3a983af9db25cf
parent283b18f6b10f26651f9274b9431e0c424f8d45c6 (diff)
downloadpasst-f45aac7aed2a3b8886fe88f39709e4e9893dbe99.tar
passt-f45aac7aed2a3b8886fe88f39709e4e9893dbe99.tar.gz
passt-f45aac7aed2a3b8886fe88f39709e4e9893dbe99.tar.bz2
passt-f45aac7aed2a3b8886fe88f39709e4e9893dbe99.tar.lz
passt-f45aac7aed2a3b8886fe88f39709e4e9893dbe99.tar.xz
passt-f45aac7aed2a3b8886fe88f39709e4e9893dbe99.tar.zst
passt-f45aac7aed2a3b8886fe88f39709e4e9893dbe99.zip
passt-repair: Fix build with -Werror=format-security
Fixes: 04701702471e ("passt-repair: Add directory watch") Signed-off-by: Stefano Brivio <sbrivio@redhat.com> (cherry picked from commit 51f3c071a76bd20677e72b49007b822dca71e755)
-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]);