Commit 31f3a6a7 authored by Adrian Reber's avatar Adrian Reber Committed by Andrei Vagin

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: 's avatarAdrian Reber <areber@redhat.com>
parent 36082937
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment