Commit adb4b83c12f9d966ea3478aa14c60511467c9916
Committed by
Jason Wessel
1 parent
521cb40b0c
Exists in
master
and in
39 other branches
kgdboc,kgdbts: strlen() doesn't count the terminator
This is an off by one because strlen() doesn't count the null terminator. We strcpy() these strings into an array of size MAX_CONFIG_LEN. Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Showing 2 changed files with 2 additions and 2 deletions Side-by-side Diff
drivers/misc/kgdbts.c
drivers/tty/serial/kgdboc.c