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

Diff for /src/usr.bin/indent/indent.c between version 1.25 and 1.26

version 1.25, 2014/07/20 01:38:40 version 1.26, 2015/01/16 06:40:08
Line 32 
Line 32 
  * SUCH DAMAGE.   * SUCH DAMAGE.
  */   */
   
 #include <sys/param.h>  
 #include <fcntl.h>  #include <fcntl.h>
 #include <unistd.h>  #include <unistd.h>
   #include <limits.h>
 #include <stdio.h>  #include <stdio.h>
 #include <stdlib.h>  #include <stdlib.h>
 #include <string.h>  #include <string.h>
Line 48 
Line 48 
                                          * file */                                           * file */
 char       *out_name = "Standard Output";       /* will always point to name  char       *out_name = "Standard Output";       /* will always point to name
                                                  * of output file */                                                   * of output file */
 char        bakfile[MAXPATHLEN] = "";  char        bakfile[PATH_MAX] = "";
   
 void bakcopy(void);  void bakcopy(void);
   
Line 1178 
Line 1178 
         p--;          p--;
     if (*p == '/')      if (*p == '/')
         p++;          p++;
     if (snprintf(bakfile, MAXPATHLEN, "%s.BAK", p) >= MAXPATHLEN)      if (snprintf(bakfile, PATH_MAX, "%s.BAK", p) >= PATH_MAX)
             errc(1, ENAMETOOLONG, "%s.BAK", p);              errc(1, ENAMETOOLONG, "%s.BAK", p);
   
     /* copy in_name to backup file */      /* copy in_name to backup file */

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26