diff --git a/src/sbbs3/prntfile.cpp b/src/sbbs3/prntfile.cpp index 223df0f2e5639d0c12d729574a3c871cd5522728..effa12894eb21c2600328f1f56eabb2d254c5f7d 100644 --- a/src/sbbs3/prntfile.cpp +++ b/src/sbbs3/prntfile.cpp @@ -96,10 +96,13 @@ bool sbbs_t::printfile(const char* fname, long mode, long org_cols) } length=(long)filelength(file); - if(length<0) { + if(length < 1) { fclose(stream); - errormsg(WHERE,ERR_CHK,fpath,length); - return false; + if(length < 0) { + errormsg(WHERE,ERR_CHK,fpath,length); + return false; + } + return true; } if(mode&P_OPENCLOSE) {