summaryrefslogtreecommitdiff
path: root/src/qcommon/parse.c
diff options
context:
space:
mode:
authorM. Kristall <mkpdev@gmail.com>2009-10-03 12:25:02 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:15:56 +0000
commit788fdf35246001ba4178dcac7665954479871f48 (patch)
treed6d61954d6a9c9380db3684a3b22a6780097e697 /src/qcommon/parse.c
parent198186fb98445ef4f27e89bd7489824500ab6eec (diff)
* (bug 3416) Overlapping strings with strcpy (thanks Jacques Boscq)
* (bug 3576) Allow % since people promise it is safe (/dev/humancontroller)
Diffstat (limited to 'src/qcommon/parse.c')
-rw-r--r--src/qcommon/parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qcommon/parse.c b/src/qcommon/parse.c
index 9308aa6e..2156f75b 100644
--- a/src/qcommon/parse.c
+++ b/src/qcommon/parse.c
@@ -979,7 +979,7 @@ static void Parse_StripDoubleQuotes(char *string)
{
if (*string == '\"')
{
- strcpy(string, string+1);
+ memmove( string, string + 1, strlen( string ) + 1 );
}
if (string[strlen(string)-1] == '\"')
{