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

Diff for /src/usr.bin/sort/bwstring.c between version 1.6 and 1.7

version 1.6, 2015/04/01 20:58:13 version 1.7, 2015/04/01 22:38:08
Line 93 
Line 93 
                                 if (*tmp == '\0')                                  if (*tmp == '\0')
                                         continue;                                          continue;
                                 len = strlen(tmp);                                  len = strlen(tmp);
                                 m = sort_malloc(SIZEOF_WCHAR_STRING(len + 1));                                  m = sort_reallocarray(NULL, len + 1,
                                       sizeof(wchar_t));
                                 if (mbstowcs(m, tmp, len) == (size_t)-1) {                                  if (mbstowcs(m, tmp, len) == (size_t)-1) {
                                         sort_free(m);                                          sort_free(m);
                                         continue;                                          continue;

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