Fix memset

This commit is contained in:
Johan Mattsson 2022-02-05 13:43:34 +01:00 committed by Tim Angus
parent 84daa28267
commit c2a0a7d986

View file

@ -59,7 +59,7 @@ const char *BuildShaderStateConfig(void) {
char out[(MAX_QPATH * 2) + 5]; char out[(MAX_QPATH * 2) + 5];
int i; int i;
memset(buff, 0, MAX_STRING_CHARS); memset(buff, 0, sizeof(buff));
for (i = 0; i < remapCount; i++) { for (i = 0; i < remapCount; i++) {
Com_sprintf(out, (MAX_QPATH * 2) + 5, "%s=%s:%5.2f@", remappedShaders[i].oldShader, remappedShaders[i].newShader, remappedShaders[i].timeOffset); Com_sprintf(out, (MAX_QPATH * 2) + 5, "%s=%s:%5.2f@", remappedShaders[i].oldShader, remappedShaders[i].newShader, remappedShaders[i].timeOffset);
Q_strcat( buff, sizeof( buff ), out); Q_strcat( buff, sizeof( buff ), out);