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

Diff for /src/usr.bin/sendbug/sendbug.c between version 1.8 and 1.9

version 1.8, 2007/03/23 03:19:30 version 1.9, 2007/03/23 03:30:52
Line 79 
Line 79 
   
         if ((tmpdir = getenv("TMPDIR")) == NULL || tmpdir[0] == '\0')          if ((tmpdir = getenv("TMPDIR")) == NULL || tmpdir[0] == '\0')
                 tmpdir = _PATH_TMP;                  tmpdir = _PATH_TMP;
         if (asprintf(&tmppath, "%s/p.XXXXXXXXXX", tmpdir) == -1) {          if (asprintf(&tmppath, "%s%sp.XXXXXXXXXX", tmpdir,
               tmpdir[strlen(tmpdir) - 1] == '/' ? "" : "/") == -1) {
                 warn("asprintf");                  warn("asprintf");
                 goto quit;                  goto quit;
         }          }

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9