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

Diff for /src/usr.bin/mail/Attic/aux.c between version 1.8 and 1.9

version 1.8, 1997/07/25 21:05:33 version 1.9, 1997/07/28 15:20:28
Line 462 
Line 462 
         register char *cp, *cp2;          register char *cp, *cp2;
         char *bufend;          char *bufend;
         int gotlt, lastsp;          int gotlt, lastsp;
         char nbuf[BUFSIZ];  
   
         if (name == NULL)          if (name == NULL)
                 return(NULL);                  return(NULL);
         if (strchr(name, '(') == NULL && strchr(name, '<') == NULL          if (strchr(name, '(') == NULL && strchr(name, '<') == NULL
             && strchr(name, ' ') == NULL)              && strchr(name, ' ') == NULL)
                 return(name);                  return(name);
           if ((bufend = (char *)malloc(strlen(name) + 1)) == NULL)
                   panic("Out of memory");
         gotlt = 0;          gotlt = 0;
         lastsp = 0;          lastsp = 0;
         bufend = nbuf;  
         for (cp = name, cp2 = bufend; (c = *cp++) != '\0'; ) {          for (cp = name, cp2 = bufend; (c = *cp++) != '\0'; ) {
                 switch (c) {                  switch (c) {
                 case '(':                  case '(':
Line 552 
Line 552 
         }          }
         *cp2 = 0;          *cp2 = 0;
   
         return(savestr(nbuf));          if ((bufend = realloc(bufend, strlen(bufend) + 1)) == NULL)
                   panic("Out of memory");
           return(bufend);
 }  }
   
 /*  /*

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9