(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:
Markus Armbruster 2005-06-12 09:38:30 +00:00
parent e536b02c1c
commit df0bbf5bd2

View file

@ -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);