summaryrefslogtreecommitdiff
path: root/doc/develop
diff options
context:
space:
mode:
authorJerome Forissier <[email protected]>2024-11-26 15:45:06 +0100
committerTom Rini <[email protected]>2024-11-30 11:52:47 -0600
commita37064cb2e482739908e76d6a53914301c8bb8ee (patch)
treebfe8f68f4e11ff45a579b66d280cfa27b3ed8099 /doc/develop
parent65b38a519b0fcae6a76f48116a5f999400d7294c (diff)
net: lwip: wget: fix legacy syntax
Commit 356011f7ac25 ("lwip: fix code style issues") has inadvertently broken the support for the legacy syntax: => wget 192.168.0.16:test.bin invalid uri, no file path Invalid URL. Use http(s):// The reason is two calls to strncpy() were replaced by strlcpy() without paying attention to the fact that they are not equivalent in the present case. Since we are using a character counter (n) and since we do not depend on having a properly null-terminated string at each step in the parsing, strlcpy() is not justified and strncpy() is the right tool for the job. So use it again. Reported-by: Tom Rini <[email protected]> Signed-off-by: Jerome Forissier <[email protected]>
Diffstat (limited to 'doc/develop')
0 files changed, 0 insertions, 0 deletions