X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Fbio%2Fserv_bio.c;fp=citadel%2Fmodules%2Fbio%2Fserv_bio.c;h=d6cbb7537928f60447adf92e67857a3344377ba6;hb=7e5d9e93cc7fdc560eac95647fe329d818444226;hp=276e7d9811baebb88c87c05b36891335f0b257dd;hpb=b4d882d541fff286c3b3bc9de34c2881b32bd3e4;p=citadel.git diff --git a/citadel/modules/bio/serv_bio.c b/citadel/modules/bio/serv_bio.c index 276e7d981..d6cbb7537 100644 --- a/citadel/modules/bio/serv_bio.c +++ b/citadel/modules/bio/serv_bio.c @@ -68,7 +68,7 @@ void cmd_ebio(char *cmdbuf) { return; } cprintf("%d \n",SEND_LISTING); - while(client_getln(buf, sizeof buf), strcmp(buf,"000")) { + while(client_getln(buf, sizeof buf) >= 0 && strcmp(buf,"000")) { if (ftell(fp) < config.c_maxmsglen) { fprintf(fp,"%s\n",buf); }