forked from fte/fteqw
1
0
Fork 0

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
This commit is contained in:
Spoike 2004-11-21 21:24:46 +00:00
parent 3f775349b3
commit 297bf5cb2d
1 changed files with 2 additions and 2 deletions

View File

@ -3136,7 +3136,7 @@ void PF_dprintv (progfuncs_t *prinst, struct globalvars_s *pr_globals)
#define MAX_TEMPSTRS 16 #define MAX_TEMPSTRS 16
#define MAXTEMPBUFFERLEN 1024 #define MAXTEMPBUFFERLEN 1024
static char *PF_TempStr(void) char *PF_TempStr(void)
{ {
static char pr_string_temparr[MAX_TEMPSTRS][MAXTEMPBUFFERLEN]; static char pr_string_temparr[MAX_TEMPSTRS][MAXTEMPBUFFERLEN];
static int tempbuffernum; static int tempbuffernum;
@ -4979,7 +4979,7 @@ void PF_substring (progfuncs_t *prinst, struct globalvars_s *pr_globals)
if (length < 0) if (length < 0)
length = strlen(s)-start; length = strlen(s)-start;
if (start >= length || length<=0 || !*s) if (start >= strlen(s) || length<=0 || !*s)
{ {
RETURN_TSTRING(""); RETURN_TSTRING("");
return; return;