nixpkgs-suyu/pkgs/games/urbanterror/l_script.patch
Alexander Tsamutali a9c51d7af3 games/urbanterror: Fixed compilation issue, but it still doesn't work.
svn path=/nixpkgs/trunk/; revision=33795
2012-04-15 22:33:36 +00:00

21 lines
557 B
Diff

diff -ur code/botlib/l_script.c kode/botlib/l_script.c
--- code/botlib/l_script.c 2007-10-09 02:47:26.000000000 +0400
+++ kode/botlib/l_script.c 2012-04-16 02:02:55.170360236 +0400
@@ -1118,7 +1118,7 @@
{
if (*string == '\"')
{
- strcpy(string, string+1);
+ memmove(string, string+1, strlen(string) - 1);
} //end if
if (string[strlen(string)-1] == '\"')
{
@@ -1135,7 +1135,7 @@
{
if (*string == '\'')
{
- strcpy(string, string+1);
+ memmove(string, string+1, strlen(string) - 1);
} //end if
if (string[strlen(string)-1] == '\'')
{