]> code.citadel.org Git - citadel.git/blobdiff - citadel/serv_bio.c
* Final bit of patching for the IPGM exploit. Random number generator is
[citadel.git] / citadel / serv_bio.c
index cfb23d1083bebe29b6fe6af242c5c0e8c03d5d1a..a8313a62e3231b494b8221a621b2c95bd448d324 100644 (file)
@@ -68,7 +68,9 @@ void cmd_ebio(char *cmdbuf) {
        }
        cprintf("%d  \n",SEND_LISTING);
        while(client_gets(buf), strcmp(buf,"000")) {
-               fprintf(fp,"%s\n",buf);
+               if (ftell(fp) < config.c_maxmsglen) {
+                       fprintf(fp,"%s\n",buf);
+               }
        }
        fclose(fp);
 }