Return to bwstring.c CVS log | Up to [local] / src / usr.bin / sort |
version 1.6, 2015/04/01 20:58:13 | version 1.7, 2015/04/01 22:38:08 | ||
---|---|---|---|
|
|
||
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; |