Re: [U-Boot] [PATCH] net: tftp: silence a subscript above array bounds compile time warning

2017-07-27 Thread Joe Hershberger
On Wed, Jun 28, 2017 at 2:56 PM, Vladimir Zapolskiy wrote: > For strncpy() select a minimal string length of destination and source > strings, here DEFAULT_NAME_LEN is preferable to MAX_LEN. > > Due to the NUL-terminated contents of default_string the change is > a noop, however

[U-Boot] [PATCH] net: tftp: silence a subscript above array bounds compile time warning

2017-06-28 Thread Vladimir Zapolskiy
For strncpy() select a minimal string length of destination and source strings, here DEFAULT_NAME_LEN is preferable to MAX_LEN. Due to the NUL-terminated contents of default_string the change is a noop, however it removes a compilation warning if SH2/3/4 platform specific strncpy() function is