Skip to content

Commit

Permalink
Swapped strndup for srtdup
Browse files Browse the repository at this point in the history
  • Loading branch information
Iain M Conochie committed Nov 25, 2023
1 parent d59aa6b commit 0c8f3e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dnsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ parse_dnsa_command_line(int argc, char **argv, dnsa_comm_line_s *comp)
case 'e':
comp->action = DNSA_ADD_MULTI;
comp->type = REVERSE_ZONE;
comp->rtype = strndup("A", MAC_LEN);
comp->rtype = strdup("A");
break;
case 'g':
comp->action = DNSA_DPREFA;
Expand Down

0 comments on commit 0c8f3e9

Please sign in to comment.