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
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ const char *BuildShaderStateConfig(void) {
char out[(MAX_QPATH * 2) + 5];
int i;
memset(buff, 0, MAX_STRING_CHARS);
memset(buff, 0, sizeof(buff));
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);
Q_strcat( buff, sizeof( buff ), out);