summaryrefslogtreecommitdiff
path: root/community/openarena/strcpy-memmove.patch
blob: 0123af61aea2eca7e09809398dedab76133570f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- code/botlib/l_script.c.orig 2009-11-02 20:29:23.000000000 +0100
+++ code/botlib/l_script.c	2009-11-02 22:21:40.000000000 +0100
@@ -1118,7 +1118,7 @@
 {
	if (*string == '\"')
	{
-		strcpy(string, string+1);
+		memmove(string, string+1, strlen(string));
	} //end if
	if (string[strlen(string)-1] == '\"')
	{
@@ -1135,7 +1135,7 @@
 {
	if (*string == '\'')
	{
-		strcpy(string, string+1);
+		memmove(string, string+1, strlen(string));
	} //end if
	if (string[strlen(string)-1] == '\'')
	{