-
Notifications
You must be signed in to change notification settings - Fork 106
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
gcc9 warns about s_sysinfo size #13
Comments
What distro/repo are you using that has gcc-9? |
Oh, sorry. This is Freebsd 12.1 |
I just pushed out the new sysinfo-gcc9 branch w/o testing on gcc9, please try it out and let me know if it works. s_sysinfo is extended to 1024, snprintf() taken care of, too. |
It compiled and seems working |
ok then |
let's close this issue |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This problem appears again:
s_sysinfo was extended to 256 before in 2cdb00f, but this is not enough for gcc9.
I suppose this should be reworked somehow.
Also seems like snprintf() always null terminates the buffer. Is such code really needed?
https://github.com/pcherenkov/udpxy/blob/master/chipmunk/util.c#L1081
The text was updated successfully, but these errors were encountered: