Skip to content

Commit

Permalink
Merge pull request 8147 from hotfix/v4.4.7 into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Project Collection Build Service (51degrees) authored and Project Collection Build Service (51degrees) committed Feb 4, 2023
2 parents e521e48 + 89ffc56 commit 4a7b21d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion headers.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ static bool copyHeaderName(Header* header, const char* source, size_t length) {
Free(name);
return false;
}
header->name = strncpy(name, source, length);
header->name = memcpy(name, source, length);
if (header->name == NULL) {
Free(name);
return false;
Expand Down

0 comments on commit 4a7b21d

Please sign in to comment.