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
..
2018-06-04 04:59:32 +00:00
2018-05-19 22:40:23 +00:00
2018-06-22 10:17:12 +00:00
2018-06-22 10:20:21 +00:00
2018-06-14 12:14:51 +00:00
2018-07-01 05:32:03 +00:00
2018-06-13 08:52:22 +00:00
2018-06-03 05:20:11 +00:00
2018-07-01 05:32:03 +00:00