kernel_optimize_test/kernel/debug/kdb
Wenlin Kang ca976bfb31 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 <wenlin.kang@windriver.com>
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
2019-05-14 13:44:24 +01:00
..
.gitignore
kdb_bp.c
kdb_bt.c
kdb_cmds
kdb_debugger.c
kdb_io.c kdb: Fix bound check compiler warning 2019-05-14 13:44:24 +01:00
kdb_keyboard.c
kdb_main.c kdb: do a sanity check on the cpu in kdb_per_cpu() 2019-05-12 09:50:44 +01:00
kdb_private.h
kdb_support.c
Makefile