commit | 4658c2699c628295ef1e4c1136e4c32075a61cdd | [log] [download] |
---|---|---|
author | Ján Sučan <sucanjan@gmail.com> | Mon Aug 19 17:28:12 2019 +0000 |
committer | WHR <msl0000023508@gmail.com> | Sat Aug 24 12:41:22 2024 +0800 |
tree | 11c9c17661d69d9f7cd21c997b6960c88cc2f918 | |
parent | 480aac1b8baa3576a9d4cd0998d2f3abff0f6331 [diff] |
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 Import from FreeBSD base revision 351223