summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/renderergl1/tr_shader.c4
-rw-r--r--src/renderergl2/tr_shader.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/renderergl1/tr_shader.c b/src/renderergl1/tr_shader.c
index 116eee94..c44925a8 100644
--- a/src/renderergl1/tr_shader.c
+++ b/src/renderergl1/tr_shader.c
@@ -1011,8 +1011,8 @@ static qboolean ParseStage( shaderStage_t *stage, char **text )
token = COM_ParseExt( text, qfalse );
if ( token[0] == 0 )
break;
- strcat( buffer, token );
- strcat( buffer, " " );
+ Q_strcat( buffer, sizeof (buffer), token );
+ Q_strcat( buffer, sizeof (buffer), " " );
}
ParseTexMod( buffer, stage );
diff --git a/src/renderergl2/tr_shader.c b/src/renderergl2/tr_shader.c
index afc8d80d..1c7e452c 100644
--- a/src/renderergl2/tr_shader.c
+++ b/src/renderergl2/tr_shader.c
@@ -1266,8 +1266,8 @@ static qboolean ParseStage( shaderStage_t *stage, char **text )
token = COM_ParseExt( text, qfalse );
if ( token[0] == 0 )
break;
- strcat( buffer, token );
- strcat( buffer, " " );
+ Q_strcat( buffer, sizeof (buffer), token );
+ Q_strcat( buffer, sizeof (buffer), " " );
}
ParseTexMod( buffer, stage );