Displaying 1 result from an estimated 1 matches for "19fe16e0".
Did you mean:
19fe16e
2024 Feb 27
1
[PATCH] Fix the inet_pton implementation
...e function inet_pton should read from src but it actually reads
from dst.
Signed-off-by: Donny Xia <xiadong.main at gmail.com>
---
usr/klibc/inet/inet_pton.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/usr/klibc/inet/inet_pton.c b/usr/klibc/inet/inet_pton.c
index 19fe16e0..2df6b677 100644
--- a/usr/klibc/inet/inet_pton.c
+++ b/usr/klibc/inet/inet_pton.c
@@ -38,7 +38,7 @@ int inet_pton(int af, const char *src, void *dst)
/* A double colon will increment colons by 2,
dcolons by 1 */
- for (p = dst; *p; p++) {
+ for (p = src; *p; p++) {
if (p[0] =...