NetBSD just released version 9.0.  It now generates this warning:

../../ntpd/ntp_control.c:1476:34: warning: '%s' directive output may be 
truncated writing up to 255 bytes into a region of size between 0 and 255 
[-Wformat-truncation=]

        char str[256];

                snprintf(str, sizeof(str), "%s/%s", utsnamebuf.sysname,
                         utsnamebuf.release);

Has anybody seen this before and/or know how to fix it?


-- 
These are my opinions.  I hate spam.



_______________________________________________
devel mailing list
devel@ntpsec.org
http://lists.ntpsec.org/mailman/listinfo/devel

Reply via email to