Przeglądaj źródła

[Fix] Fix issue with pushing binary formats to Lua strings

tags/2.7
Vsevolod Stakhov 3 lat temu
rodzic
commit
0daf76ab88
1 zmienionych plików z 3 dodań i 2 usunięć
  1. 3
    2
      contrib/libucl/lua_ucl.c

+ 3
- 2
contrib/libucl/lua_ucl.c Wyświetl plik

@@ -598,11 +598,12 @@ static int
lua_ucl_to_string (lua_State *L, const ucl_object_t *obj, enum ucl_emitter type)
{
unsigned char *result;
size_t outlen;

result = ucl_object_emit (obj, type);
result = ucl_object_emit_len (obj, type, &outlen);

if (result != NULL) {
lua_pushstring (L, (const char *)result);
lua_pushlstring (L, (const char *)result, outlen);
free (result);
}
else {

Ładowanie…
Anuluj
Zapisz