mirror of
https://github.com/opnsense/src.git
synced 2026-04-26 16:47:30 -04:00
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
|
||
|---|---|---|
| .. | ||
| commands.c | ||
| commands.h | ||
| display.c | ||
| display.h | ||
| layout.h | ||
| loadavg.h | ||
| machine.c | ||
| machine.h | ||
| Makefile | ||
| Makefile.depend | ||
| screen.c | ||
| screen.h | ||
| top.1 | ||
| top.c | ||
| top.h | ||
| username.c | ||
| username.h | ||
| utils.c | ||
| utils.h | ||