From 297bf5cb2d9fd0b806107f874e1100c91d5824ce Mon Sep 17 00:00:00 2001 From: Spoike Date: Sun, 21 Nov 2004 21:24:46 +0000 Subject: [PATCH] Erm. Whoops. Let's fix that bug now... git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@500 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/server/pr_cmds.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/server/pr_cmds.c b/engine/server/pr_cmds.c index a97abc138..2d7f5327c 100644 --- a/engine/server/pr_cmds.c +++ b/engine/server/pr_cmds.c @@ -3136,7 +3136,7 @@ void PF_dprintv (progfuncs_t *prinst, struct globalvars_s *pr_globals) #define MAX_TEMPSTRS 16 #define MAXTEMPBUFFERLEN 1024 -static char *PF_TempStr(void) +char *PF_TempStr(void) { static char pr_string_temparr[MAX_TEMPSTRS][MAXTEMPBUFFERLEN]; static int tempbuffernum; @@ -4979,7 +4979,7 @@ void PF_substring (progfuncs_t *prinst, struct globalvars_s *pr_globals) if (length < 0) length = strlen(s)-start; - if (start >= length || length<=0 || !*s) + if (start >= strlen(s) || length<=0 || !*s) { RETURN_TSTRING(""); return;