CVSROOT: /cvs Module name: src Changes by: [email protected] 2025/09/28 10:22:51
Modified files:
usr.bin/make : arch.c
Log message:
Fix warning: 'snprintf' will always be truncated
When make -t touched an archive member, snprintf(_, 12, "%-12ld", _)
truncated 13 bytes to 12. Fix is to snprintf() 13 bytes in a temp
buffer, then memcpy() 12 without the '\0'.
Also change "%-12ld" to "%-12lld", (long long)time_t.
from espie@ ok tb@
