forked from github/server
prevent out-of-bounds read.
This commit is contained in:
parent
088747ea81
commit
5af775ba87
1 changed files with 3 additions and 1 deletions
|
@ -1943,7 +1943,9 @@ static spellparameter *add_spellparameter(region * target_r, unit * u,
|
||||||
break;
|
break;
|
||||||
case 'r':
|
case 'r':
|
||||||
/* Parameter sind zwei Regionskoordinaten innerhalb der "normalen" Plane */
|
/* Parameter sind zwei Regionskoordinaten innerhalb der "normalen" Plane */
|
||||||
j = addparam_region(param + i, &spobj, u, ord);
|
if (i + 1 < size) {
|
||||||
|
j = addparam_region(param + i, &spobj, u, ord);
|
||||||
|
}
|
||||||
++c;
|
++c;
|
||||||
break;
|
break;
|
||||||
case 'b':
|
case 'b':
|
||||||
|
|
Loading…
Reference in a new issue