This commit is contained in:
2026-08-05 12:48:40 +03:00
parent 42dd5945dd
commit 427130e2ca
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -104,7 +104,7 @@
PIString getSockAddr(sockaddr * s) {
if (!s) return PIString();
char buf[INET_ADDRSTRLEN];
memset(&buf, 0, INET_ADDRSTRLEN);
piZeroMemory(buf, sizeof(buf));
const char * r = inet_ntop(AF_INET, &((sockaddr_in *)s)->sin_addr, buf, sizeof(buf));
return r ? PIStringAscii(r) : PIString();
}