Limit log length with IPC commands

Fixes #3525
This commit is contained in:
Orestis Floros
2020-04-10 16:41:51 +02:00
parent 57a37f8af4
commit 964456b628
3 changed files with 3 additions and 3 deletions

View File

@ -263,7 +263,7 @@ char *parse_string(const char **walk, bool as_word) {
* Free the returned CommandResult with command_result_free().
*/
CommandResult *parse_command(const char *input, yajl_gen gen, ipc_client *client) {
DLOG("COMMAND: *%s*\n", input);
DLOG("COMMAND: *%.4000s*\n", input);
state = INITIAL;
CommandResult *result = scalloc(1, sizeof(CommandResult));