Skip to content

Commit

Permalink
Avoid potential signed integer overflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
skullernet committed Oct 1, 2022
1 parent fde6697 commit 97f0ab2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/demo.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ static void CL_Record_f(void)
// send the serverdata
MSG_WriteByte(svc_serverdata);
MSG_WriteLong(PROTOCOL_VERSION_DEFAULT);
MSG_WriteLong(0x10000 + cl.servercount);
MSG_WriteLong(cl.servercount);
MSG_WriteByte(1); // demos are always attract loops
MSG_WriteString(cl.gamedir);
MSG_WriteShort(cl.clientNum);
Expand Down

0 comments on commit 97f0ab2

Please sign in to comment.