From c90d13174d58abda5979fcc0b6e222ee9d2e487b Mon Sep 17 00:00:00 2001 From: codemastr Date: Tue, 8 Aug 2000 22:29:16 +0000 Subject: [PATCH] fixed a botmotd bug --- Changes | 1 + src/s_serv.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index f107ca380..87a538c4a 100644 --- a/Changes +++ b/Changes @@ -539,3 +539,4 @@ - Fixed a MODE_STRIPWORDS bug - Fixed a PART bug - Fixed a STRIPBADWORDS bug +- Fixed a BotMOTD bug diff --git a/src/s_serv.c b/src/s_serv.c index fe72536f5..43b8362c7 100644 --- a/src/s_serv.c +++ b/src/s_serv.c @@ -4559,7 +4559,7 @@ aMotd *read_botmotd(char *filename) (void)dgets(-1, NULL, 0); /* make sure buffer is at empty pos */ newmotd = last = NULL; - while (i = dgets(fd, line, 81) > 0) + while ((i = dgets(fd, line, 81)) > 0) { line[i] = '\0'; if ((tmp = (char *)strchr(line, '\n')))