Gentoo Archives: gentoo-commits

From: "Michael Sterrett (mr_bones_)" <mr_bones_@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-fps/quake3/files: quake3-1.36-bots.patch
Date: Mon, 31 Jan 2011 00:30:57
Message-Id: 20110131003047.66EA620057@flycatcher.gentoo.org
1 mr_bones_ 11/01/31 00:30:47
2
3 Added: quake3-1.36-bots.patch
4 Log:
5 add Redhat patch to fix bot loading on 64bit (bug #353257)
6
7 (Portage version: 2.1.9.25/cvs/Linux i686)
8
9 Revision Changes Path
10 1.1 games-fps/quake3/files/quake3-1.36-bots.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-fps/quake3/files/quake3-1.36-bots.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-fps/quake3/files/quake3-1.36-bots.patch?rev=1.1&content-type=text/plain
14
15 Index: quake3-1.36-bots.patch
16 ===================================================================
17 --- code/botlib/l_script.c.orig 2009-11-02 20:29:23.000000000 +0100
18 +++ code/botlib/l_script.c 2009-11-02 22:21:40.000000000 +0100
19 @@ -1118,7 +1118,7 @@
20 {
21 if (*string == '\"')
22 {
23 - strcpy(string, string+1);
24 + memmove(string, string+1, strlen(string));
25 } //end if
26 if (string[strlen(string)-1] == '\"')
27 {
28 @@ -1135,7 +1135,7 @@
29 {
30 if (*string == '\'')
31 {
32 - strcpy(string, string+1);
33 + memmove(string, string+1, strlen(string));
34 } //end if
35 if (string[strlen(string)-1] == '\'')
36 {