diff --git a/src/sbbs3/install/sbbsinst.c b/src/sbbs3/install/sbbsinst.c index c31eecb1302c708533ce28d30d06606501cfedcf..4f775de5d6a80e7cd888a70d47cf2629b51d43bd 100644 --- a/src/sbbs3/install/sbbsinst.c +++ b/src/sbbs3/install/sbbsinst.c @@ -616,7 +616,7 @@ void install_sbbs(dist_t *dist,struct server_ent_t *server) { } printf("Downloading %s ",url); offset=0; - while((ret1=read(remote,buf,sizeof(buf)))>=0) { + while((ret1=read(remote,buf,sizeof(buf)))>0) { ret2=write(fout,buf,ret1); if(ret2!=ret1) { printf("\n!ERROR %d writing to %s\n",errno,dstfname);