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

Diff for /src/usr.bin/indent/args.c between version 1.17 and 1.18

version 1.17, 2013/11/26 13:21:17 version 1.18, 2014/05/20 01:25:23
Line 168 
Line 168 
     home = getenv("HOME");      home = getenv("HOME");
     if (home != NULL && *home != '\0') {      if (home != NULL && *home != '\0') {
         if (snprintf(fname, sizeof fname, "%s/%s", home, prof) >= sizeof fname) {          if (snprintf(fname, sizeof fname, "%s/%s", home, prof) >= sizeof fname) {
             warnx("%s/%s: %s", home, prof, strerror(ENAMETOOLONG));              warnc(ENAMETOOLONG, "%s/%s", home, prof);
             return;              return;
         }          }
         if ((f = fopen(option_source = fname, "r")) != NULL) {          if ((f = fopen(option_source = fname, "r")) != NULL) {

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18