New warning from NetBSD 9.0

Hal Murray hmurray at megapathdsl.net
Wed Feb 19 08:02:41 UTC 2020


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.





More information about the devel mailing list