From c4e52b331f54fbfac364296c23f80cf37a11dfb3 Mon Sep 17 00:00:00 2001 From: fefux Date: Sun, 17 May 2026 13:24:21 +0200 Subject: [PATCH] FIX socket_get_id generates always empty string on linux --- src/pc/network/socket/socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pc/network/socket/socket.c b/src/pc/network/socket/socket.c index edf179202..2702c9b98 100644 --- a/src/pc/network/socket/socket.c +++ b/src/pc/network/socket/socket.c @@ -201,7 +201,7 @@ static s64 ns_socket_get_id(UNUSED u8 localId) { static char* ns_socket_get_id_str(u8 localId) { if (localId == UNKNOWN_LOCAL_INDEX) { localId = 0; } static char id_str[INET6_ADDRSTRLEN] = { 0 }; - snprintf(id_str, INET6_ADDRSTRLEN, "%s", inet_ntop(AF_INET6, &sAddr[localId].sin6_addr, id_str, sizeof(id_str))); + inet_ntop(AF_INET6, &sAddr[localId].sin6_addr, id_str, sizeof(id_str)); return id_str; }