(turn): Buffer passed to getele() was one too small. Deity could
overrun it by entering a message of maximum size.
This commit is contained in:
parent
e536b02c1c
commit
df0bbf5bd2
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ turn(void)
|
||||||
FILE *fptr;
|
FILE *fptr;
|
||||||
struct telstr tgm;
|
struct telstr tgm;
|
||||||
char *p;
|
char *p;
|
||||||
char buf[MAXTELSIZE];
|
char buf[MAXTELSIZE + 1];
|
||||||
char *msgfilepath;
|
char *msgfilepath;
|
||||||
|
|
||||||
p = getstarg(player->argp[1], "on, off or motd? ", buf);
|
p = getstarg(player->argp[1], "on, off or motd? ", buf);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue