We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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" strncpy(d, s, 32); #pragma GCC diagnostic pop
The text was updated successfully, but these errors were encountered:
Thanks for reporting! Could you make this a pull request with a fix please, since you know the solution, and we can merge it?
Sorry, something went wrong.
No branches or pull requests
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"
strncpy(d, s, 32);
#pragma GCC diagnostic pop
The text was updated successfully, but these errors were encountered: