]> git.karo-electronics.de Git - karo-tx-uboot.git/commit
fastboot: Correct fastboot_fail and fastboot_okay strings
authorDileep Katta <dileep.katta@linaro.org>
Fri, 13 Feb 2015 06:33:42 +0000 (14:33 +0800)
committerMarek Vasut <marex@denx.de>
Wed, 25 Feb 2015 16:47:02 +0000 (17:47 +0100)
commite874207134e9d2d5958636f7f32b60e5441ab320
tree429c3cd7b1bf2eea826bc752da895878061cf18e
parent9e4b510d40310bf46e09f4edd0a0b6356213df47
fastboot: Correct fastboot_fail and fastboot_okay strings

If the string is copied without NULL termination using strncpy(),
then strncat() on the next line, may concatenate the string after
some stale (or random) data, if the response string was not
zero-initialized.

Signed-off-by: Dileep Katta <dileep.katta@linaro.org>
Reviewed-by: Steve Rae <srae@broadcom.com>
Reviewed-by: Lukasz Majewski <l.majewski@samsung.com>
common/fb_mmc.c