Fix compile for Windows, broken in 44b69f2d.
authorCarl Hetherington <cth@carlh.net>
Fri, 15 Oct 2021 06:07:42 +0000 (08:07 +0200)
committerCarl Hetherington <cth@carlh.net>
Fri, 15 Oct 2021 06:07:42 +0000 (08:07 +0200)
src/lib/cross_windows.cc

index 01bbe521de3c698c5ef1acb3b734652187284eed..23adc23b16e74eab926b1f44d5586cef91181627 100644 (file)
@@ -357,7 +357,7 @@ wchar_to_utf8 (wchar_t const * s)
        int const length = (wcslen(s) + 1) * 2;
        std::vector<char> utf8(length);
        WideCharToMultiByte (CP_UTF8, 0, s, -1, utf8.data(), length, 0, 0);
-       string u (utf8);
+       string u (utf8.data());
        return u;
 }