mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
5e17203ff5
As SUSE build tool reports the warning: lvmlockd-core.c: In function 'client_thread_main': lvmlockd-core.c:4959:37: warning: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size 6 [-Wformat-truncation=] snprintf(buf, sizeof(buf), "path[%d]", i); ^~ lvmlockd-core.c:4959:31: note: directive argument in the range [0, 2147483647] snprintf(buf, sizeof(buf), "path[%d]", i); ^~~~~~~~~~ To dismiss the compilation warning, enlarge the array "buf" to 17 bytes to support the max signed integer: string format 6 bytes + signed integer 10 bytes + terminal char "\0". Reported-by: Heming Zhao <heming.zhao@suse.com> Signed-off-by: Leo Yan <leo.yan@linaro.org> |
||
---|---|---|
.. | ||
.gitignore | ||
lvmlockctl.c | ||
lvmlockd-client.h | ||
lvmlockd-core.c | ||
lvmlockd-dlm.c | ||
lvmlockd-idm.c | ||
lvmlockd-internal.h | ||
lvmlockd-sanlock.c | ||
Makefile.in |