diff options
author | Adam Harrison <adamdharrison@gmail.com> | 2024-03-03 14:40:28 -0500 |
---|---|---|
committer | Adam Harrison <adamdharrison@gmail.com> | 2024-03-03 14:40:28 -0500 |
commit | 4127f7c9b4b82ac68c3e545018e49b4952e4774b (patch) | |
tree | 110c9cdffd4eecdf0460a4e671fd0896c8174be0 /src/lpm.c | |
parent | b800db9e23402c1abcc07fcc969f7388b494fefb (diff) | |
download | lite-xl-plugin-manager-4127f7c9b4b82ac68c3e545018e49b4952e4774b.tar.gz lite-xl-plugin-manager-4127f7c9b4b82ac68c3e545018e49b4952e4774b.zip |
Jesus christ, widnows.
Diffstat (limited to 'src/lpm.c')
-rw-r--r-- | src/lpm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -77,7 +77,7 @@ static const char* lua_toutf8(lua_State* L, LPCWSTR str) { if (output) { len = WideCharToMultiByte(CP_UTF8, 0, str, -1, output, len, NULL, NULL); if (len) { - lua_pushlstring(L, output, len); + lua_pushlstring(L, output, len - 1); free(output); return lua_tostring(L, -1); } |