aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2024-03-03 14:40:28 -0500
committerAdam Harrison <adamdharrison@gmail.com>2024-03-03 14:40:28 -0500
commit4127f7c9b4b82ac68c3e545018e49b4952e4774b (patch)
tree110c9cdffd4eecdf0460a4e671fd0896c8174be0
parentb800db9e23402c1abcc07fcc969f7388b494fefb (diff)
downloadlite-xl-plugin-manager-4127f7c9b4b82ac68c3e545018e49b4952e4774b.tar.gz
lite-xl-plugin-manager-4127f7c9b4b82ac68c3e545018e49b4952e4774b.zip
Jesus christ, widnows.
-rw-r--r--src/lpm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lpm.c b/src/lpm.c
index beef23b..6816ae1 100644
--- a/src/lpm.c
+++ b/src/lpm.c
@@ -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);
}