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

Diff for /src/usr.bin/csplit/csplit.c between version 1.1 and 1.2

version 1.1, 2006/07/17 16:38:02 version 1.2, 2006/07/17 17:11:32
Line 257 
Line 257 
                 return;                  return;
   
         /*          /*
          * NOTE: One cannot portably assume to be able to call snprintf()           * NOTE: One cannot portably assume to be able to call snprintf() from
          * from inside a signal handler. It does, however, appear to be safe           * inside a signal handler.  It is, however, safe to do on OpenBSD.
          * to do on FreeBSD. The solution to this problem is worse than the  
          * problem itself.  
          */           */
   
         for (i = 0; i < nfiles; i++) {          for (i = 0; i < nfiles; i++) {
                 snprintf(fnbuf, sizeof(fnbuf), "%s%0*ld", prefix,                  snprintf(fnbuf, sizeof(fnbuf), "%s%0*ld", prefix,
                     (int)sufflen, i);                      (int)sufflen, i);

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2