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

Diff for /src/usr.bin/ftp/util.c between version 1.89 and 1.90

version 1.89, 2019/05/16 12:44:18 version 1.90, 2019/06/28 05:35:34
Line 404 
Line 404 
                 if (temp[len-1] != '/')                  if (temp[len-1] != '/')
                         temp[len++] = '/';                          temp[len++] = '/';
                 (void)strlcpy(&temp[len], TMPFILE, sizeof temp - len);                  (void)strlcpy(&temp[len], TMPFILE, sizeof temp - len);
                 if ((fd = mkstemp(temp)) < 0) {                  if ((fd = mkstemp(temp)) == -1) {
                         warn("unable to create temporary file: %s", temp);                          warn("unable to create temporary file: %s", temp);
                         return (NULL);                          return (NULL);
                 }                  }

Legend:
Removed from v.1.89  
changed lines
  Added in v.1.90