musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat
-rw-r--r--src/network/inet_ntop.c 2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/inet_ntop.c b/src/network/inet_ntop.c
index e9e2823f..ca333437 100644
--- a/src/network/inet_ntop.c
+++ b/src/network/inet_ntop.c
@@ -40,7 +40,7 @@ const char *inet_ntop(int af, const void *restrict a0, char *restrict s, socklen
}
if (max>2) {
buf[best] = buf[best+1] = ':';
- strcpy(buf+best+2, buf+best+max);
+ memmove(buf+best+2, buf+best+max, i-best-max+1);
}
if (strlen(buf) < l) {
strcpy(s, buf);
generated by cgit v1.2.1 (git 2.18.0) at 2025年10月29日 01:08:44 +0000

AltStyle によって変換されたページ (->オリジナル) /