mirror of
https://github.com/alliedmodders/sourcemod.git
synced 2025-12-06 18:08:36 +00:00
fix: incorrect byte length returned by json_doc_write_to_str
This commit is contained in:
parent
574423abee
commit
3200a6ba1a
@ -1178,7 +1178,7 @@ static cell_t json_doc_write_to_str(IPluginContext* pContext, const cell_t* para
|
||||
|
||||
pContext->StringToLocalUTF8(params[2], buffer_size, temp_buffer, nullptr);
|
||||
free(temp_buffer);
|
||||
return static_cast<cell_t>(output_len + 1);
|
||||
return static_cast<cell_t>(output_len);
|
||||
}
|
||||
|
||||
static cell_t json_doc_write_to_file(IPluginContext* pContext, const cell_t* params)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user