Dammit! The last commit wasn't supposed to be sent -_-

* Use SCRIPT_MAX_ARRAYSIZE instead of hardcoded values in explode (bugreport:7037).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@17037 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
momacabu 2012-12-23 19:01:35 +00:00
parent c4310061d9
commit 684ef312cb

View File

@ -13763,7 +13763,7 @@ BUILDIN_FUNC(explode)
}
while(str[i] != '\0') {
if(str[i] == delimiter && start < 127) { //break at delimiter but ignore after reaching last array index
if(str[i] == delimiter && start < SCRIPT_MAX_ARRAYSIZE-1) { //break at delimiter but ignore after reaching last array index
temp[j] = '\0';
set_reg(st, sd, reference_uid(id, start++), name, (void*)temp, reference_getref(data));
j = 0;