freebsd-dev/usr.bin/top
Sean Bruno 9d5352cb63 r336028 changed next_msg to a char * from char [] of fixed size. Change
2nd argument of vsnprintf() to get the strlen of next_msg so that the
appropriate size is used.

Found with gcc.

/usr.bin/top/display.c: In function 'new_message':
/usr.bin/top/display.c:963:31: error:
argument to 'sizeof' in 'vsnprintf' call is the same expression as the
destination; did you mean to provide an explicit length?
[-Werror=sizeof-pointer-memaccess]
     vsnprintf(next_msg, sizeof(next_msg), msgfmt, args);

Reviewed by:	daichi
2018-07-06 13:22:44 +00:00
..
commands.c top(1): reimplement header formatting as sbuf 2018-06-22 09:21:01 +00:00
commands.h top(1): move command mapping to commands.c 2018-06-12 06:53:31 +00:00
display.c r336028 changed next_msg to a char * from char [] of fixed size. Change 2018-07-06 13:22:44 +00:00
display.h top(1): include what you use 2018-06-04 04:59:32 +00:00
layout.h top(1): Migrate top to usr.bin 2018-05-19 22:40:23 +00:00
loadavg.h top(1): filter fewer warnings; clean up 2018-06-10 06:21:51 +00:00
machine.c Changed to eliminate the upper limit of command length displayed 2018-07-06 12:07:06 +00:00
machine.h top(1): garbage collect 2018-06-22 10:17:12 +00:00
Makefile top(1): increase warnings 2018-06-22 10:20:21 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
screen.c Changed to eliminate the upper limit of command length displayed 2018-07-06 12:07:06 +00:00
screen.h top(1): remove special handling of load > 5 2018-06-22 09:45:18 +00:00
top.1 top(1): remove myself from top.1 2018-06-14 12:14:51 +00:00
top.c top(1) - support UTF-8 display 2018-07-01 05:32:03 +00:00
top.h Changed to eliminate the upper limit of command length displayed 2018-07-06 12:07:06 +00:00
username.c top(1): style(9) 2018-06-13 08:52:22 +00:00
username.h top(1): partial revert of r334517 2018-06-03 05:20:11 +00:00
utils.c Fix build: utf8strvisx() does signed data comparisons, but 'char' type 2018-07-03 14:32:15 +00:00
utils.h top(1) - support UTF-8 display 2018-07-01 05:32:03 +00:00