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

Diff for /src/usr.bin/mail/list.c between version 1.3 and 1.4

version 1.3, 1997/01/17 07:12:49 version 1.4, 1997/05/30 08:51:42
Line 685 
Line 685 
  * previous search string.   * previous search string.
  */   */
   
 char lastscan[128];  char lastscan[STRINGLEN];
 int  int
 matchsubj(str, mesg)  matchsubj(str, mesg)
         char *str;          char *str;
Line 697 
Line 697 
         str++;          str++;
         if (strlen(str) == 0)          if (strlen(str) == 0)
                 str = lastscan;                  str = lastscan;
         else          else {
                 strcpy(lastscan, str);                  strncpy(lastscan, str, sizeof lastscan-1);
                   lastscan[sizeof lastscan-1] = '\0';
           }
   
         mp = &message[mesg-1];          mp = &message[mesg-1];
   
         /*          /*

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4