freebsd-dev/sbin/ping
Alan Somers 7898770a26 ping: fix -Wformat-truncating warning with GCC
Increase buffer size for the string representation of n_time

ICMP timestamp is a 32-bit number. In pr_ntime(), number of minutes
and seconds is always 2 characters wide. Max. number of hours is 4
characters wide. The buffer size should be at least:

4 + 2 + 2 + 1 (':') + 1 (':') + 1 ('\0') = 11

Submitted by:	Ján Sučan <sucanjan@gmail.com>
MFC after:	2 weeks
Sponsored by:	Google, inc. (Google Summer of Code 2019)
Differential Revision:	https://reviews.freebsd.org/D21325
2019-08-19 17:28:12 +00:00
..
Makefile ping: Move in_cksum() to a separate source file 2019-08-17 15:25:01 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
ping.8 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
ping.c ping: fix -Wformat-truncating warning with GCC 2019-08-19 17:28:12 +00:00
utils.c ping: Move in_cksum() to a separate source file 2019-08-17 15:25:01 +00:00
utils.h ping: Move in_cksum() to a separate source file 2019-08-17 15:25:01 +00:00