diff options
author | Adrian Reber <areber@redhat.com> | 2019-03-13 17:34:10 +0300 |
---|---|---|
committer | Andrei Vagin <avagin@gmail.com> | 2019-04-21 06:25:26 +0300 |
commit | 31f3a6a737d23ef2d41f5e7526bebeffc637316d (patch) | |
tree | 4fdb9e8df22e665db9ce1a94d59f5f2afe88898f /test | |
parent | 3608293773459d6e46d223c6def964cb0e29e771 (diff) |
test: fix compilation error
binfmt_misc.c:168:23: error: ‘sprintf’ may write a terminating nul past the end of the destination [-Werror=format-overflow=]
168 | sprintf(path, "%s/%s", dirname, NAME[i]);
| ^
Signed-off-by: Adrian Reber <areber@redhat.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/zdtm/static/binfmt_misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/zdtm/static/binfmt_misc.c b/test/zdtm/static/binfmt_misc.c index fec7e0353..72ab8c1ec 100644 --- a/test/zdtm/static/binfmt_misc.c +++ b/test/zdtm/static/binfmt_misc.c @@ -98,7 +98,7 @@ int dump_content(const char *path, char **dump) int main(int argc, char **argv) { char buf[MAX_REG_STR + 1]; - char path[PATH_MAX]; + char path[PATH_MAX*2 + 1]; char *dump[2]; int i, fd, len; |