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

Diff for /src/usr.bin/ssh/utf8.c between version 1.6 and 1.7

version 1.6, 2017/04/17 14:31:23 version 1.7, 2017/05/31 09:15:42
Line 67 
Line 67 
         tsz = *sz + 128;          tsz = *sz + 128;
         if (tsz > maxsz)          if (tsz > maxsz)
                 tsz = maxsz;                  tsz = maxsz;
         if ((tp = realloc(*dst, tsz)) == NULL)          if ((tp = recallocarray(*dst, *sz, tsz, 1)) == NULL)
                 return -1;                  return -1;
         *dp = tp + (*dp - *dst);          *dp = tp + (*dp - *dst);
         *dst = tp;          *dst = tp;

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7