Skip to content

Commit ace13f3

Browse files
committed
since we dont add \n, correct buffer size
1 parent b59ed77 commit ace13f3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/auditd-event.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ static const char *format_enrich(const struct audit_reply *rep)
457457
auparse_set_escape_mode(au, AUPARSE_ESC_RAW);
458458
auparse_set_eoe_timeout(config->end_of_event_timeout);
459459
} else
460-
auparse_new_buffer(au, format_buf, mlen+1);
460+
auparse_new_buffer(au, format_buf, mlen);
461461
sep_done = 0;
462462

463463
// Loop over all fields while possible to add field

0 commit comments

Comments
 (0)