diff --git a/src/common/kernel/magic.c b/src/common/kernel/magic.c index b5336ccf0..8bd05ac3b 100644 --- a/src/common/kernel/magic.c +++ b/src/common/kernel/magic.c @@ -1875,11 +1875,12 @@ add_spellparameter(region *target_r, unit *u, const char *syntax, char ** param, while (!fail && *c && ifaction->locale); - if (i>=size) pword = NOPARAM; switch (pword) { case P_REGION: spobj = malloc(sizeof(spllprm)); spobj->flag = 0; spobj->typ = SPP_REGION; spobj->data.r = u->region; + j = 0; ++c; break; case P_UNIT: - j = addparam_unit(param+i, &spobj, u, ord); - ++c; + if (i