]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
tokenize: allow more tokens
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 6 Mar 2009 10:54:02 +0000 (10:54 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 6 Mar 2009 10:54:02 +0000 (10:54 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8776 d7cf8633-e32d-0410-b094-e92efae38249

prvm_cmds.c

index a819196f4a0a74933b9dbb50efa33aa781d6f18c..b6ec55437fbfb44dea67212bbcbfc614485e5dde 100644 (file)
@@ -2290,9 +2290,9 @@ float tokenize(string s)
 //this function originally written by KrimZon, made shorter by LordHavoc
 //20040203: rewritten by LordHavoc (no longer uses allocations)
 static int num_tokens = 0;
-static int tokens[256];
-static int tokens_startpos[256];
-static int tokens_endpos[256];
+static int tokens[VM_STRINGTEMP_LENGTH / 2];
+static int tokens_startpos[VM_STRINGTEMP_LENGTH / 2];
+static int tokens_endpos[VM_STRINGTEMP_LENGTH / 2];
 static char tokenize_string[VM_STRINGTEMP_LENGTH];
 void VM_tokenize (void)
 {