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

Diff for /src/usr.bin/unifdef/unifdef.c between version 1.27 and 1.28

version 1.27, 2015/12/10 22:52:12 version 1.28, 2016/03/15 01:00:17
Line 1537 
Line 1537 
         if (len < 0)          if (len < 0)
                 err(2, "snprintf");                  err(2, "snprintf");
         size = (size_t)len + 1;          size = (size_t)len + 1;
         s = malloc(size);          s = (char *)malloc(size);
         if (s == NULL)          if (s == NULL)
                 err(2, "malloc");                  err(2, "malloc");
         snprintf(s, size, "%s%s", s1, s2);          snprintf(s, size, "%s%s", s1, s2);
Line 1555 
Line 1555 
   
         if (end < start) abort(); /* bug */          if (end < start) abort(); /* bug */
         n = (size_t)(end - start) + 1;          n = (size_t)(end - start) + 1;
         s = malloc(n);          s = (char *)malloc(n);
         if (s == NULL)          if (s == NULL)
                 err(2, "malloc");                  err(2, "malloc");
         snprintf(s, n, "%s", start);          snprintf(s, n, "%s", start);

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.28