aboutsummaryrefslogtreecommitdiffstats
path: root/lib/timerqueue.c
diff options
context:
space:
mode:
authorWenlin Kang <[email protected]>2019-05-13 08:57:20 +0000
committerDaniel Thompson <[email protected]>2019-05-14 12:44:24 +0000
commitca976bfb3154c7bc67c4651ecd144fdf67ccaee7 (patch)
treec14984408a43c210a00b4a24334a52f36462fccc /lib/timerqueue.c
parentkdb: do a sanity check on the cpu in kdb_per_cpu() (diff)
downloadkernel-ca976bfb3154c7bc67c4651ecd144fdf67ccaee7.tar.gz
kernel-ca976bfb3154c7bc67c4651ecd144fdf67ccaee7.zip
kdb: Fix bound check compiler warning
The strncpy() function may leave the destination string buffer unterminated, better use strscpy() instead. This fixes the following warning with gcc 8.2: kernel/debug/kdb/kdb_io.c: In function 'kdb_getstr': kernel/debug/kdb/kdb_io.c:449:3: warning: 'strncpy' specified bound 256 equals destination size [-Wstringop-truncation] strncpy(kdb_prompt_str, prompt, CMD_BUFLEN); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Wenlin Kang <[email protected]> Signed-off-by: Daniel Thompson <[email protected]>
Diffstat (limited to 'lib/timerqueue.c')
0 files changed, 0 insertions, 0 deletions