summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/map/intif.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/intif.c b/src/map/intif.c
index 8066d07b9..016b4f7d3 100644
--- a/src/map/intif.c
+++ b/src/map/intif.c
@@ -333,6 +333,10 @@ int intif_saveregistry(struct map_session_data *sd) {
if( varname[0] == '@' ) /* @string$ can get here, so we skip */
continue;
+ if (strlen(varname) > SCRIPT_VARNAME_LENGTH) {
+ ShowError("Variable name too big: %s\n", varname);
+ continue;
+ }
src = DB->data2ptr(data);
/* no need! */