urbanterror: Correction for previous commit.

This commit is contained in:
Александр Цамутали 2013-02-16 21:52:36 +04:00
parent bcc14b65c3
commit 1921086ffa
2 changed files with 2 additions and 22 deletions

View file

@ -22,7 +22,8 @@ stdenv.mkDerivation rec {
'';
installPhase = ''
destDir="$out/opt/urbanterror"
ensureDir "$destDir" "$out/bin"
mkdir -p "$destDir"
mkdir -p "$out/bin"
cp -v build/release-linux-*/Quake3-UrT.* \
"$destDir/Quake3-UrT"
cp -v build/release-linux-*/Quake3-UrT-Ded.* \

View file

@ -1,21 +0,0 @@
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] == '\'')
{