Pārlūkot izejas kodu

Fix lsp_url_encode()

Dst might be 3 times as large as the input
xtne6f 9 gadi atpakaļ
vecāks
revīzija
1afdde421f
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      src/mod_lua.inl

+ 1 - 1
src/mod_lua.inl

@@ -704,7 +704,7 @@ lsp_url_encode(lua_State *L)
 	int num_args = lua_gettop(L);
 	int num_args = lua_gettop(L);
 	const char *text;
 	const char *text;
 	size_t text_len;
 	size_t text_len;
-	char dst[512];
+	char dst[512 * 3];
 
 
 	if (num_args == 1) {
 	if (num_args == 1) {
 		text = lua_tolstring(L, 1, &text_len);
 		text = lua_tolstring(L, 1, &text_len);