projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix wrong sigaction syscall ABI on mips*, or1k, microblaze, riscv64
[musl]
/
src
/
network
/
inet_ntop.c
diff --git
a/src/network/inet_ntop.c
b/src/network/inet_ntop.c
index
14f9f4c
..
4bfef2c
100644
(file)
--- a/
src/network/inet_ntop.c
+++ b/
src/network/inet_ntop.c
@@
-36,7
+36,7
@@
const char *inet_ntop(int af, const void *restrict a0, char *restrict s, socklen
j = strspn(buf+i, ":0");
if (j>max) best=i, max=j;
}
- if (max>
2
) {
+ if (max>
3
) {
buf[best] = buf[best+1] = ':';
memmove(buf+best+2, buf+best+max, i-best-max+1);
}