Re: New warning from NetBSD 9.0

2020-02-19 Thread Achim Gratz via devel
Hal Murray via devel writes: > 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

Re: New warning from NetBSD 9.0

2020-02-19 Thread Eric S. Raymond via devel
Hal Murray via devel : > > 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

New warning from NetBSD 9.0

2020-02-19 Thread Hal Murray via devel
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,