(lrange, shoo, execute): Buffer passed to getstarg() was too small.
Player could overrun it!
This commit is contained in:
parent
58a0d40777
commit
968e754447
3 changed files with 7 additions and 7 deletions
|
@ -76,9 +76,9 @@ lrange(void)
|
|||
struct lndstr land;
|
||||
struct lchrstr *lcp;
|
||||
int i;
|
||||
s_char *p;
|
||||
s_char prompt[128];
|
||||
s_char buf[128];
|
||||
char *p;
|
||||
char prompt[128];
|
||||
char buf[1024];
|
||||
|
||||
if (!snxtitem(&np, EF_LAND, player->argp[1]))
|
||||
return RET_SYN;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue