sm64coopdx/src
fefux 87f87b5dc9
Some checks are pending
Build coop / build-linux (push) Waiting to run
Build coop / build-steamos (push) Waiting to run
Build coop / build-windows (push) Waiting to run
Build coop / build-macos-arm (push) Waiting to run
Build coop / build-macos-intel (push) Waiting to run
Ns_socket_get_id generates always empty string on linux (#1248)
This pr fixes an issue on linux where the function ns_socket_get_id_str always returns empty string.
See glibc implementation of vsnprintf : [vsnprintf implementation](https://elixir.bootlin.com/glibc/glibc-2.36/source/libio/vsnprintf.c#L112). First string parameter is "emptied" before starting the copy.

And I suspect the original snprintf to rewrite twice the same value in id_str (except if I missed something) so we can just remove it.

This issue gives moderator access to all players when they connect/reconnect after adding one player as moderator because all players have the same id : "".

How to reproduce : 
Host server (via socket, not coopnet) on sm64coopdx linux version
Add moderator to one player
All new connected or reconnected player are promoted to moderator
2026-05-18 07:58:46 +10:00
..
audio fix audio engine crash from reloading banks that are already loaded (#1232) 2026-05-15 21:14:09 -04:00
buffers
engine much further draw distance option (#1240) 2026-05-16 11:13:02 +10:00
game Change romhack camera options (#1247) 2026-05-16 22:07:51 -04:00
goddard Mark all unused variables as unused, resolve other warnings (#1147) 2026-04-21 23:40:24 -04:00
menu Add Ability to Hide HUD on Act Select Screen (#880) 2025-07-29 11:42:55 +10:00
pc Ns_socket_get_id generates always empty string on linux (#1248) 2026-05-18 07:58:46 +10:00