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

Diff for /src/usr.bin/find/misc.c between version 1.3 and 1.4

version 1.3, 1996/10/24 03:46:05 version 1.4, 1997/06/30 23:54:08
Line 67 
Line 67 
         register char ch, *p;          register char ch, *p;
   
         plen = strlen(path);          plen = strlen(path);
         for (p = *store; ch = *orig; ++orig)          for (p = *store; (ch = *orig); ++orig)
                 if (ch == '{' && orig[1] == '}') {                  if (ch == '{' && orig[1] == '}') {
                         while ((p - *store) + plen > len)                          while ((p - *store) + plen > len)
                                 if (!(*store = realloc(*store, len *= 2)))                                  if (!(*store = realloc(*store, len *= 2)))
Line 125 
Line 125 
 {  {
         void *p;          void *p;
   
         if (p = malloc(len))          if ((p = malloc(len)))
                 return (p);                  return (p);
         err(1, NULL);          err(1, NULL);
 }  }

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