aboutsummaryrefslogtreecommitdiffhomepage
path: root/wutil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'wutil.cpp')
-rw-r--r--wutil.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/wutil.cpp b/wutil.cpp
index 3f70368e..ffb4f2b2 100644
--- a/wutil.cpp
+++ b/wutil.cpp
@@ -476,7 +476,7 @@ const wchar_t *wgettext(const wchar_t *in)
{
cstring mbs_in = wcs2string(key);
char *out = fish_gettext(mbs_in.c_str());
- val = new wcstring(format_string(L"%s", out));
+ val = new wcstring(format_string(L"%s", out)); //note that this writes into the map!
}
errno = err;
return val->c_str();