search for: dcolon

Displaying 2 results from an estimated 2 matches for "dcolon".

Did you mean: colon
2015 Apr 01
0
[PATCH] fix inet_pton for AF_INET6
...ons(-) diff --git a/usr/klibc/inet/inet_pton.c b/usr/klibc/inet/inet_pton.c index 19fe16e..2df6b67 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] == ':') { colons++; if (p[1] == ':') @@ -54,7 +54,7 @@ int inet_pton(int af, const char *src, void *dst) memset(d, 0, sizeof(struct in6_addr)); i = 0; - for (p = dst; *p; p++) {...
2024 Feb 27
1
[PATCH] Fix the inet_pton implementation
...s(-) 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] == ':') { colons++; if (p[1] == ':') @@ -54,7 +54,7 @@ int inet_pton(int af, const char *src, void *dst) memset(d, 0, sizeof(struct in6_addr)); i = 0; - for (p = dst; *p; p++) {...