Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 246530 Details for
Bug 306617
games-fps/openarena-0.8.8 version bump
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to fix the bot loading problem on 64bit intel CPU
openarena-0.8.1-bots-strcpy-fix.patch (text/plain), 1.11 KB, created by
Cesar Garcia
on 2010-09-09 04:01:46 UTC
(
hide
)
Description:
patch to fix the bot loading problem on 64bit intel CPU
Filename:
MIME Type:
Creator:
Cesar Garcia
Created:
2010-09-09 04:01:46 UTC
Size:
1.11 KB
patch
obsolete
>diff -up quake3-1.36/code/botlib/l_precomp.c~ quake3-1.36/code/botlib/l_precomp.c >--- quake3-1.36/code/botlib/l_precomp.c~ 2009-04-27 08:42:37.000000000 +0200 >+++ quake3-1.36/code/botlib/l_precomp.c 2009-11-03 21:03:08.000000000 +0100 >@@ -948,7 +948,7 @@ void PC_ConvertPath(char *path) > if ((*ptr == '\\' || *ptr == '/') && > (*(ptr+1) == '\\' || *(ptr+1) == '/')) > { >- strcpy(ptr, ptr+1); >+ memmove(ptr, ptr+1, strlen(ptr)); > } //end if > else > { >diff -up quake3-1.36/code/botlib/l_script.c~ quake3-1.36/code/botlib/l_script.c >--- quake3-1.36/code/botlib/l_script.c~ 2009-04-27 08:42:37.000000000 +0200 >+++ quake3-1.36/code/botlib/l_script.c 2009-11-03 21:06:11.000000000 +0100 >@@ -1118,7 +1118,7 @@ void StripDoubleQuotes(char *string) > { > if (*string == '\"') > { >- strcpy(string, string+1); >+ memmove(string, string+1, strlen(string)); > } //end if > if (string[strlen(string)-1] == '\"') > { >@@ -1135,7 +1135,7 @@ void StripSingleQuotes(char *string) > { > if (*string == '\'') > { >- strcpy(string, string+1); >+ memmove(string, string+1, strlen(string)); > } //end if > if (string[strlen(string)-1] == '\'') > {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 306617
:
246528
| 246530 |
312149
|
312151
|
312153
|
312155