Skip to content

Commit

Permalink
fix insecure string copy
Browse files Browse the repository at this point in the history
  • Loading branch information
h0tw1r3 committed Apr 23, 2024
1 parent 68aec8c commit e1a086a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pam_shield_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ name_list *new_name_list(char *name) {
return NULL;

memset(n, 0, sizeof(name_list));
strcpy(n->name, name);
snprintf(n->name, sizeof(n->name), "%s", name);
return n;
}

Expand Down

0 comments on commit e1a086a

Please sign in to comment.