mirror of
https://passt.top/passt
synced 2025-06-04 15:17:13 +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 commit51f3c071a7
)
This commit is contained in:
parent
283b18f6b1
commit
f45aac7aed
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ int main(int argc, char **argv)
|
||||||
_exit(1);
|
_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;
|
inotify_dir = true;
|
||||||
} else {
|
} else {
|
||||||
ret = snprintf(a.sun_path, sizeof(a.sun_path), "%s", argv[1]);
|
ret = snprintf(a.sun_path, sizeof(a.sun_path), "%s", argv[1]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue