u-boot/net/lwip
Jerome Forissier a37064cb2e net: lwip: wget: fix legacy syntax
Commit 356011f7ac ("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 <trini@konsulko.com>
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
2024-11-30 11:52:47 -06:00
..
dhcp.c net: lwip: dhcp: support arguments for TFTP file download 2024-11-22 14:51:26 -06:00
dns.c net: lwip: add dns command 2024-10-16 11:11:56 -06:00
eth_internal.h lwip: fix code style issues 2024-11-14 18:14:05 -06:00
Kconfig Kconfig: describe NET, NO_NET, LWIP_DEBUG and LWIP_ASSERT 2024-11-18 13:32:16 -06:00
Makefile net: lwip: add wget command 2024-10-16 11:11:56 -06:00
net-lwip.c net: lwip: fix get_udev_ipv4_info() 2024-11-22 14:37:49 -06:00
ping.c lwip: fix code style issues 2024-11-14 18:14:05 -06:00
tftp.c lwip: fix code style issues 2024-11-14 18:14:05 -06:00
wget.c net: lwip: wget: fix legacy syntax 2024-11-30 11:52:47 -06:00