Skip to content

Commit 5fb2352

Browse files
committed
(core) sockets: more size for socket name
Src-commit: 88f7e0861c8bc33329088f7ccc7801f8acb559f3
1 parent 510a63f commit 5fb2352

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/library/sockets/sockets_c.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,10 @@ CBOOL__PROTO(prolog_bind_socket)
219219
/* socket_accept(+Sock, -Stream) */
220220
CBOOL__PROTO(prolog_socket_accept) {
221221
ERR__FUNCTOR("sockets:socket_accept", 2);
222-
int socket, new_s;
222+
int socket, new_s; // TODO: int for LP64?
223223
struct sockaddr isa;
224224
unsigned int isalen;
225-
char new_s_name[16];
225+
char new_s_name[32];
226226

227227
DEREF(X(0), X(0));
228228
if (!TaggedIsSmall(X(0)))

0 commit comments

Comments
 (0)