mirror of
https://github.com/kenzok8/small.git
synced 2025-01-08 12:08:21 +08:00
12 lines
319 B
Diff
12 lines
319 B
Diff
--- a/src/local.c
|
|
+++ b/src/local.c
|
|
@@ -718,7 +718,7 @@ server_recv_cb(EV_P_ ev_io *w, int reven
|
|
|
|
ss_free(hostname);
|
|
} else {
|
|
- strncpy(host, ip, sizeof(ip));
|
|
+ strncpy(host, ip, INET6_ADDRSTRLEN);
|
|
}
|
|
}
|
|
|