Open jhe33 opened 5 years ago
in file apps/vhost/vhost_user.c, line 36 and 57, the following is the code:
strncpy(un.sun_path, path, sizeof(un.sun_path));
could someone change the strncpy to memcpy to avoid the compile error or add some gcc pragmas, like:
strncpy(d, s, 32);
Thanks for reporting! Could you make this a pull request with a fix please, since you know the solution, and we can merge it?
in file apps/vhost/vhost_user.c, line 36 and 57, the following is the code:
strncpy(un.sun_path, path, sizeof(un.sun_path));
could someone change the strncpy to memcpy to avoid the compile error or add some gcc pragmas, like:
pragma GCC diagnostic push
pragma GCC diagnostic ignored "-Wstringop-truncation"
pragma GCC diagnostic pop