Skip to content

Commit

Permalink
Fix configstring length limit when writing demos
Browse files Browse the repository at this point in the history
  • Loading branch information
res2k committed Nov 21, 2024
1 parent edab646 commit 082540a
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 @@ -904,7 +904,7 @@ void CL_EmitDemoSnapshot(void)
if (!strcmp(from, to))
continue;

len = Q_strnlen(to, MAX_QPATH);
len = Q_strnlen(to, CS_MAX_STRING_LENGTH);
q2proto_svc_message_t message = {.type = Q2P_SVC_CONFIGSTRING};
message.configstring.index = i;
message.configstring.value.str = to;
Expand Down

0 comments on commit 082540a

Please sign in to comment.