From bae02ff5163f1f60519270d187b0fd38a4b27245 Mon Sep 17 00:00:00 2001 From: Hagen Date: Sun, 18 Sep 2011 08:09:26 +0000 Subject: [PATCH] =?UTF-8?q?=D0=A7=D0=B0=D1=81=D1=82=D0=B8=D1=87=D0=BD?= =?UTF-8?q?=D0=BE=20=D1=83=D0=B1=D1=80=D0=B0=D0=BD=D1=8B=20=D0=BE=D1=88?= =?UTF-8?q?=D0=B8=D0=B1=D0=BA=D0=B8=20=D0=BF=D1=80=D0=B8=20=D0=BA=D0=BE?= =?UTF-8?q?=D0=BC=D0=BF=D0=B8=D0=BB=D1=8F=D1=86=D0=B8=D0=B8.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gamemodes/penls.pwn | 6 +++--- include/rus_text.inc | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gamemodes/penls.pwn b/gamemodes/penls.pwn index 71e0507..c99c707 100644 --- a/gamemodes/penls.pwn +++ b/gamemodes/penls.pwn @@ -7590,17 +7590,17 @@ public PayDay() return 1; } -strtok(const string[], &index) +strtok(const string[], &index, const delimiter = ' ') { new length = strlen(string); - while ((index < length) && (string[index] <= ' ')) + while ((index < length) && (string[index] <= delimiter)) { index++; } new offset = index; new result[20]; - while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1))) + while ((index < length) && (string[index] > delimiter) && ((index - offset) < (sizeof(result) - 1))) { result[index - offset] = string[index]; index++; diff --git a/include/rus_text.inc b/include/rus_text.inc index 026ad31..a9ca513 100644 --- a/include/rus_text.inc +++ b/include/rus_text.inc @@ -93,7 +93,7 @@ public FixRus(string[]) stock strlower(txt[]) { - new tmp[MAX_TEXTSTR]; + new tmp[512]; tmp[0]=0; if (txt[0]==0) return tmp; new i=0;