diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-12-19 13:31:06 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-12-19 13:31:06 -0800 |
commit | 644607c29fbb480b0d6fb95bb4ce3b1f9ed81276 (patch) | |
tree | b0e0655d5d4028c3090dd065053d57208280f485 /fishd.cpp | |
parent | b0a9a5a7561b2e163ac556e78e12c5ac245ada75 (diff) |
Eliminate str2wcs
Diffstat (limited to 'fishd.cpp')
-rw-r--r-- | fishd.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 { |