diff options
author | Adam Harrison <adamdharrison@gmail.com> | 2024-03-03 12:48:03 -0500 |
---|---|---|
committer | Adam Harrison <adamdharrison@gmail.com> | 2024-03-03 12:48:03 -0500 |
commit | 6c45ce30556423d4763a293ff11fee242e3716be (patch) | |
tree | 763b05be59fb68bdc09f903f751463e8c5be670a /src/lpm.c | |
parent | 2fb28d04835fa95a2caf7baf1aeee44de0336c64 (diff) | |
download | lite-xl-plugin-manager-6c45ce30556423d4763a293ff11fee242e3716be.tar.gz lite-xl-plugin-manager-6c45ce30556423d4763a293ff11fee242e3716be.zip |
Fixed typo.
Diffstat (limited to 'src/lpm.c')
-rw-r--r-- | src/lpm.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -97,7 +97,7 @@ static const int luaL_win32_error(lua_State* L, DWORD error_id, const char* mess size_t size = FormatMessageW(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, NULL, error_id, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), message_buffer, 2048, NULL); lua_pushliteral(L, ": "); - lua_toutf8(L, messageBuffer); + lua_toutf8(L, message_buffer); lua_concat(L, 3); return lua_error(L); } @@ -771,7 +771,7 @@ static int lpm_extract(lua_State* L) { return luaL_error(L, "can't open tar.gz archive %s: %s", src, strerror(errno)); char buffer[8192]; - int len = strlen(src) - 3;; + int len = strlen(src) - 3; if (strstr(src, ".tar")) strncpy(actual_src, src, len < PATH_MAX ? len : PATH_MAX); |