diff --git a/src/sbbs3/prntfile.cpp b/src/sbbs3/prntfile.cpp index ea34b6eac4640063170a6460832512a44ba9a820..a2b38aa85288c2bbdb7db1fa4dbe6762df9f8da9 100644 --- a/src/sbbs3/prntfile.cpp +++ b/src/sbbs3/prntfile.cpp @@ -44,15 +44,19 @@ /****************************************************************************/ void sbbs_t::printfile(char *str, long mode) { - char HUGE16 *buf; + char* buf; + char* p; int file,wip=0,rip=0; long length,savcon=console; FILE *stream; - if(strstr(str,".WIP")) - wip=1; - if(strstr(str,".RIP")) - rip=1; + p=strrchr(str,'.'); + if(p!=NULL) { + if(stricmp(p,".wip")==0) + wip=1; + else if(stricmp(p,".rip")==0) + rip=1; + } if(mode&P_NOABORT || wip || rip) { if(online==ON_REMOTE && console&CON_R_ECHO) {