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