diff options
author | Tomohiro Kusumi <kusumi.tomohiro@gmail.com> | 2019-03-09 19:39:02 +0900 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2019-03-09 10:39:02 +0000 |
commit | b394699a668e866f92019d9b3e8bfb29fec4eb28 (patch) | |
tree | 929a34cc539b0771367a96f35737257809e61ded /util/fusermount.c | |
parent | 1c70c870fe688e3bcd3b3dc8e8951a79fcaef435 (diff) | |
download | libfuse-b394699a668e866f92019d9b3e8bfb29fec4eb28.tar.gz |
Work around -Wformat-truncation=/-Wformat-overflow= warnings (#356)
sprintf(3)/snprintf(3) destination buffers need to be large enough
so that gcc doesn't warn -Wformat-truncation= or -Wformat-overflow=
when source buffer size is 1024 bytes.
--
../test/test_syscalls.c:1445:47: warning: '%s' directive output may be truncated writing 1 byte into a region of size between 0 and 1023 [-Wformat-truncation=]
#define PATH(p) (snprintf(path, sizeof path, "%s/%s", testdir, p), path)
^~~~~~~
../test/test_syscalls.c:1458:19:
res = mkdir(PATH("a"), 0755);
~~~
Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@gmail.com>
Diffstat (limited to 'util/fusermount.c')
0 files changed, 0 insertions, 0 deletions