Eliminate str2wcs

This commit is contained in:
ridiculousfish
2012-12-19 13:31:06 -08:00
parent b0a9a5a756
commit 644607c29f
16 changed files with 161 additions and 210 deletions

View File

@@ -598,7 +598,8 @@ static wchar_t *fishd_env_get(const wchar_t *key)
free(nkey);
if (nres)
{
return str2wcs(nres);
wcstring tmp = str2wcstring(nres);
return wcsdup(tmp.c_str());
}
else
{