diff --git a/src/d_clisrv.c b/src/d_clisrv.c index 015e2c0ca..787ff3d9e 100644 --- a/src/d_clisrv.c +++ b/src/d_clisrv.c @@ -4061,25 +4061,25 @@ const char *name3, uint8_t *key3, const char *name4, uint8_t *key4) { nodetoplayer[node] = newplayernum; WRITESTRINGN(buf_p, name, MAXPLAYERNAME); - WRITESTRINGN(buf_p, key, 32); + WRITEMEM(buf_p, key, 32); } else if (playerpernode[node] < 2) { nodetoplayer2[node] = newplayernum; WRITESTRINGN(buf_p, name2, MAXPLAYERNAME); - WRITESTRINGN(buf_p, key2, 32); + WRITEMEM(buf_p, key2, 32); } else if (playerpernode[node] < 3) { nodetoplayer3[node] = newplayernum; WRITESTRINGN(buf_p, name3, MAXPLAYERNAME); - WRITESTRINGN(buf_p, key3, 32); + WRITEMEM(buf_p, key3, 32); } else if (playerpernode[node] < 4) { nodetoplayer4[node] = newplayernum; WRITESTRINGN(buf_p, name4, MAXPLAYERNAME); - WRITESTRINGN(buf_p, key4, 32); + WRITEMEM(buf_p, key4, 32); } WRITEUINT8(buf_p, nodetoplayer[node]); // consoleplayer diff --git a/src/p_saveg.c b/src/p_saveg.c index bdc6bfda4..31bfa868d 100644 --- a/src/p_saveg.c +++ b/src/p_saveg.c @@ -789,7 +789,7 @@ static void P_NetUnArchivePlayers(savebuffer_t *save) players[i].sliptideZipDelay = READUINT8(save->p); players[i].sliptideZipBoost = READUINT16(save->p); - READSTRINGN(save->p, players[i].public_key, 32); + READMEM(save->p, players[i].public_key, 32); // respawnvars_t players[i].respawn.state = READUINT8(save->p);