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

Diff for /src/usr.bin/mandoc/mandoc.c between version 1.83 and 1.84

version 1.83, 2019/05/21 08:03:43 version 1.84, 2019/06/27 15:05:14
Line 489 
Line 489 
         size_t           ssz;          size_t           ssz;
         int              isz;          int              isz;
   
           buf = NULL;
         tm = localtime(&t);          tm = localtime(&t);
         if (tm == NULL)          if (tm == NULL)
                 return NULL;                  goto fail;
   
         /*          /*
          * Reserve space:           * Reserve space:
Line 515 
Line 516 
          * of looking at LC_TIME.           * of looking at LC_TIME.
          */           */
   
         if ((isz = snprintf(p, 4 + 1, "%d, ", tm->tm_mday)) == -1)          isz = snprintf(p, 4 + 1, "%d, ", tm->tm_mday);
           if (isz < 0 || isz > 4)
                 goto fail;                  goto fail;
         p += isz;          p += isz;
   
Line 525 
Line 527 
   
 fail:  fail:
         free(buf);          free(buf);
         return NULL;          return mandoc_strdup("");
 }  }
   
 char *  char *
Line 533 
Line 535 
 {  {
         char            *cp;          char            *cp;
         time_t           t;          time_t           t;
   
           if (man->quick)
                   return mandoc_strdup(in == NULL ? "" : in);
   
         /* No date specified: use today's date. */          /* No date specified: use today's date. */
   

Legend:
Removed from v.1.83  
changed lines
  Added in v.1.84