Skip to content

Commit

Permalink
Allocate enough space for trailing NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
ndptech committed Dec 15, 2023
1 parent 165d6db commit 929d0e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/server/cf_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -1970,7 +1970,7 @@ static CONF_ITEM *process_catch(cf_stack_t *stack)
if (argc) {
int i;

css->argv = talloc_array(css, char const *, argc);
css->argv = talloc_array(css, char const *, argc + 1);

This comment has been minimized.

Copy link
@alandekok

alandekok Dec 18, 2023

Member

Whoops! Thanks.

css->argv_quote = talloc_array(css, fr_token_t, argc);
css->argc = argc;

Expand Down

0 comments on commit 929d0e0

Please sign in to comment.