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

Diff for /src/usr.bin/rdist/expand.c between version 1.5 and 1.6

version 1.5, 1998/06/26 21:21:10 version 1.6, 1998/08/13 03:29:09
Line 261 
Line 261 
                         *tail = savec;                          *tail = savec;
                 if (tp != NULL) {                  if (tp != NULL) {
                         for (; tp != NULL; tp = tp->n_next) {                          for (; tp != NULL; tp = tp->n_next) {
                                 (void) sprintf((char *)ebuf,                                  (void) snprintf((char *)ebuf, sizeof ebuf,
                                                "%s%s%s", s, tp->n_name, tail);                                      "%s%s%s", s, tp->n_name, tail);
                                 expstr(ebuf);                                  expstr(ebuf);
                         }                          }
                         return;                          return;
                 }                  }
                 (void) sprintf((char *)ebuf, "%s%s", s, tail);                  (void) snprintf((char *)ebuf, sizeof ebuf, "%s%s", s, tail);
                 expstr(ebuf);                  expstr(ebuf);
                 return;                  return;
         }          }

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6