From: Alexander Barton Date: Thu, 7 May 2020 16:10:41 +0000 (+0200) Subject: Allow more characters per line in MOTD and help text files X-Git-Tag: rel-26-rc1~5 X-Git-Url: https://arthur.barton.de/gitweb/?p=ngircd.git;a=commitdiff_plain;h=fcf2874a9d64675c64afbce58cd4cdc73de54978 Allow more characters per line in MOTD and help text files Change the line buffer in the Read_TextFile() function from 127 to COMMAND_LEN (=512) bytes. Lines can't even get that long, because they have to be prefixed before being sent to the client, so this is a sane maximum. This allows for even more "fancy" and "wider" MOTDs :-) Closes #271. --- diff --git a/src/ngircd/conf.c b/src/ngircd/conf.c index a58ac26e..1c5ba624 100644 --- a/src/ngircd/conf.c +++ b/src/ngircd/conf.c @@ -853,7 +853,7 @@ no_listenports(void) static bool Read_TextFile(const char *Filename, const char *Name, array *Destination) { - char line[127]; + char line[COMMAND_LEN]; FILE *fp; int line_no = 1;