1
0
Fork 0
mirror of https://passt.top/passt synced 2025-05-19 16:05:35 +02:00

passt-repair: Fix build with -Werror=format-security

Fixes: 0470170247 ("passt-repair: Add directory watch")
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
(cherry picked from commit 51f3c071a7)
This commit is contained in:
Stefano Brivio 2025-03-18 17:18:47 +01:00 committed by David Gibson
parent 283b18f6b1
commit f45aac7aed

View file

@ -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]);