From 6c45ce30556423d4763a293ff11fee242e3716be Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Sun, 3 Mar 2024 12:48:03 -0500 Subject: Fixed typo. --- src/lpm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lpm.c b/src/lpm.c index e5425c8..478897b 100644 --- a/src/lpm.c +++ b/src/lpm.c @@ -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); -- cgit v1.2.3