diff --git a/src/client/demo.c b/src/client/demo.c index c840a1e10..0d2dcd0f1 100644 --- a/src/client/demo.c +++ b/src/client/demo.c @@ -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;