mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +00:00
Fix memset
This commit is contained in:
parent
84daa28267
commit
c2a0a7d986
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue