]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
kgdboc,kgdbts: strlen() doesn't count the terminator
authorDan Carpenter <error27@gmail.com>
Mon, 15 Mar 2010 12:28:00 +0000 (07:28 -0500)
committerJason Wessel <jason.wessel@windriver.com>
Fri, 25 Mar 2011 21:37:30 +0000 (16:37 -0500)
commitadb4b83c12f9d966ea3478aa14c60511467c9916
treeb9dd2efee119cc6f053ffa6fb50a3d336e5e3dfb
parent521cb40b0c44418a4fd36dc633f575813d59a43d
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>
drivers/misc/kgdbts.c
drivers/tty/serial/kgdboc.c