[BACK]Return to cmd2.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mail

Diff for /src/usr.bin/mail/cmd2.c between version 1.13 and 1.14

version 1.13, 2003/10/24 20:32:06 version 1.14, 2004/05/10 12:10:50
Line 373 
Line 373 
 }  }
   
 /*  /*
  * Clobber as many bytes of stack as the user requests.  
  */  
 int  
 clobber(void *v)  
 {  
         char **argv = v;  
         int times;  
   
         if (argv[0] == 0)  
                 times = 1;  
         else  
                 times = (atoi(argv[0]) + 511) / 512;  
         clob1(times);  
         return(0);  
 }  
   
 /*  
  * Clobber the stack.  
  */  
 void  
 clob1(n)  
         int n;  
 {  
         char buf[512];  
         char *cp;  
   
         if (n <= 0)  
                 return;  
         for (cp = buf; cp < &buf[512]; *cp++ = 0xFF)  
                 ;  
         clob1(n - 1);  
 }  
   
 /*  
  * Add the given header fields to the retained list.   * Add the given header fields to the retained list.
  * If no arguments, print the current list of retained fields.   * If no arguments, print the current list of retained fields.
  */   */

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14