-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
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
Compilation error: strncpy truncates string #31
Comments
how to solve it? |
Changing the length in the |
It didn't work, how to solve this issue for you.Please give a solution for this issue. This is completely a bug. |
What do you mean it didn't work? What error are you getting? Do the declared size of the array and the number in the call match? |
Closed
See #38, Just change one line of the Makefile under the root folder. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I get the following error during compilation:
I think that this is due to the fact that
w_name
is declared as 11 characters long (with the last character likely being NULL), but only the first 10 are copied here. Is this intended? It seems to me that, if the character array is not null-terminated, that can cause problems for thestrlen
call afterwards, even if it's not needed in the end because multiple strings are being joined.The text was updated successfully, but these errors were encountered: