summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormomacabu <momacabu@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-12-23 19:01:35 +0000
committermomacabu <momacabu@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-12-23 19:01:35 +0000
commitdb2241eb1df2cb260298108536e846a6cf0cc5ee (patch)
tree56d02be9d2cafc4dcd29fa7359df86f9ee6490c1
parent8534ef7783892ff9c278d1b794f6954e56b8030b (diff)
downloadhercules-db2241eb1df2cb260298108536e846a6cf0cc5ee.tar.gz
hercules-db2241eb1df2cb260298108536e846a6cf0cc5ee.tar.bz2
hercules-db2241eb1df2cb260298108536e846a6cf0cc5ee.tar.xz
hercules-db2241eb1df2cb260298108536e846a6cf0cc5ee.zip
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://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17037 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--src/map/script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 5dd8250f2..8f016a6f8 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -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;