Browse Source

Merge pull request #959 from Dialga/patch-3

Fix oom url_encode() error msg
bel2125 4 years ago
parent
commit
2cb59cf857
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/mod_lua.inl

+ 1 - 1
src/mod_lua.inl

@@ -1418,7 +1418,7 @@ lsp_url_encode(lua_State *L)
 				lua_pushstring(L, dst);
 				mg_free(dst);
 			} else {
-				return luaL_error(L, "out of memory in url_decode() call");
+				return luaL_error(L, "out of memory in url_encode() call");
 			}
 		} else {
 			lua_pushnil(L);