Re: [U-Boot] [PATCH V2] common: cli_simple: use strlcpy instead of strcpy

2016-01-11 Thread Simon Glass
On 9 January 2016 at 22:01, Peng Fan wrote: > Report Coverity log: > Destination buffer too small (STRING_OVERFLOW) > string_overflow: You might overrun the 1024 byte destination string > lastcommand by writing 1025 bytes from console_buffer > > Signed-off-by: Peng Fan > Cc: Heiko Schocher > Cc:

[U-Boot] [PATCH V2] common: cli_simple: use strlcpy instead of strcpy

2016-01-09 Thread Peng Fan
Report Coverity log: Destination buffer too small (STRING_OVERFLOW) string_overflow: You might overrun the 1024 byte destination string lastcommand by writing 1025 bytes from console_buffer Signed-off-by: Peng Fan Cc: Heiko Schocher Cc: Simon Glass Cc: Tom Rini --- Changes V2: Use strlcpy in