Commit 804b4bf2 authored by Deucе's avatar Deucе 👌🏾
Browse files

And finally, take a pointer, return success properly.

This one should build even on Win32.
parent 54f16516
Pipeline #728 failed with stage
in 3 minutes and 55 seconds
......@@ -549,13 +549,13 @@ DLLEXPORT int inet_pton(int af, const char *src, void *dst)
switch(af) {
case AF_INET:
memcpy(dst, (((struct sockaddr_in *)cur)->sin_addr), sizeof(((struct sockaddr_in *)cur)->sin_addr));
memcpy(dst, &(((struct sockaddr_in *)cur)->sin_addr), sizeof(((struct sockaddr_in *)cur)->sin_addr));
case AF_INET6:
memcpy(dst, (((struct sockaddr_in6 *)cur)->sin6_addr), sizeof(((struct sockaddr_in6 *)cur)->sin6_addr));
memcpy(dst, &(((struct sockaddr_in6 *)cur)->sin6_addr), sizeof(((struct sockaddr_in6 *)cur)->sin6_addr));
return addr;
return 1;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment