* dump_file(): Dumps a file on the control connection. Used for
* welcome messages and the likes. Note that outbuf
* is so big, to prevent any crashing from users creating
- * weird .message files (like 1024 LFs)...
+ * weird .message files (like 1024 LFs)... The size of
+ * the file is limited to 1024 bytes (by truncation).
*/
void dump_file(struct conn * const c, const int num, const char * const filename)
{
- char buf[1024], outbuf[8192];
+ char buf[1024], outbuf[5121];
char *ptr = outbuf + 4;
int i, j = -1;