diff --git a/src/config_trapdoor.c b/src/config_trapdoor.c index 3cac5f9020..6b08aa2778 100644 --- a/src/config_trapdoor.c +++ b/src/config_trapdoor.c @@ -1130,8 +1130,8 @@ TbBool parse_trapdoor_trap_blocks(char *buf, long len, const char *config_textna } if (n < 1) { - CONFWRNLOG("Incorrect value of \"%s\" parameter in [%s] block of %s file.", - COMMAND_TEXT(cmd_num), block_buf, config_textname); + CONFWRNLOG("Incorrect value of \"%s\" parameter in [%.*s] block of %s file.", + COMMAND_TEXT(cmd_num), blocknamelen, blockname, config_textname); } break; case ccr_comment: