home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / WWIVMODS / PRE412.ZIP / HACKFIX.MOD < prev    next >
Text File  |  1990-07-19  |  2KB  |  59 lines

  1. Zimmion #1 @3131
  2. Mon Jul 16 10:46:44 1990
  3. /*              The Fixer mod      
  4.                 Zimmod "7"
  5.                 Fix a BAD bug in wwiv
  6.  
  7. One post on the natonal Cosysops net really ticked alot of us off. 
  8. It's a text file that told you how to crash wwiv. This mod, or 
  9. replacement to a void will VERY easyly fix it. There are two ways 
  10. to fix this bug.
  11.  
  12. 1) Register DSZ
  13.  
  14. 2) Install This mod
  15.  
  16. Now, considering that DSZ cost less to register than wwiv, and if 
  17. you are not registerd, think, don't spend $50+ insted of $20 
  18. (Although you really should support Wayne!).
  19.  
  20. Ok On with the Mod/Fix
  21.  
  22. */
  23.  
  24. In XFER.C go to int okfn(char *s) replace or add the void (or the 
  25. added code.
  26.  
  27.  
  28. int okfn(char *s)
  29. {
  30.   int i,l,ok;
  31.   unsigned char ch;
  32.  
  33.   ok=1;
  34.   l=strlen(s);
  35.   for (i=0; i<l; i++) {
  36.     ch=s[i];
  37.     if ((ch==' ') || (ch=='/') || (ch=='\\') || (ch==':') ||
  38.         (ch=='>') || (ch=='<') || (ch=='|')  || (ch=='+') ||
  39.         (ch==',') || (ch==';') || (ch>126) || (ch=='*') || (ch=='?')) 
  40.                                               /* ^^ ADDED BUG FIX ^^ */ 
  41.       ok=0;
  42.   }
  43.   return(ok);
  44. }
  45.            
  46. /* This is the compleat mod. It works fine. Thisway you can get a 
  47. new vevrsion of DSZ and it don't kill your system. 
  48.  
  49. Please, if you use this mod, e-mail 1@3131 or call Instant Insanity 
  50. at 301-983-2911. I have auto-sysop valadation. THis mod SHOULDN'T 
  51. kill your system, or burn your house down, but if it that happends, 
  52. i really can't help. It works FINE On wwiv 4.11 and 4.10, and even 
  53. on a clean copy (call my wwiv system to see what i mean, i call it 
  54. WWIV 4.11z)
  55.  
  56. Ok all                          Zimmion
  57.                                 7-16-90
  58.                                 1@3131
  59.