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-01 22:57:19 +00:00
2018-05-19 00:26:00 +00:00
2018-06-10 05:48:03 +00:00
2018-06-18 04:54:09 +00:00
2018-06-09 04:40:17 +00:00
2018-06-16 15:05:05 +00:00
2018-07-03 19:09:46 +00:00
2018-06-25 11:44:56 +00:00
2018-06-22 09:10:50 +00:00
2018-06-21 07:42:28 +00:00
2018-06-27 19:29:15 +00:00
2018-06-13 08:52:04 +00:00
2018-05-23 01:20:31 +00:00
2018-06-24 09:39:40 +00:00