]> git.baikalelectronics.ru Git - 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)
commit50dc6006c92001cc1f37c85e898a9644743bea05
treeb9dd2efee119cc6f053ffa6fb50a3d336e5e3dfb
parent5f606d388b7d90e888f8599ea3bd433cadefba0e
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