Skip to content

Commit

Permalink
Revert "fixes issue #334"
Browse files Browse the repository at this point in the history
This reverts commit 439d9a8.

causes failures in ph_adapt and chef7... not sure why
https://my.cdash.org/test/28207484
https://my.cdash.org/test/28207381
  • Loading branch information
cwsmith committed Mar 20, 2021
1 parent 0a2d9ea commit 897ffda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phasta/phIO.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ static int find_header(FILE* f, const char* name, char* found, char header[PH_LI
tmp[PH_LINE-1] = '\0';
parse_header(tmp, &hname, &bytes, 0, NULL);
if (!strncmp(name, hname, strlen(name))) {
strncpy(found, hname, strlen(found));
strncpy(found, hname, strlen(hname));
found[strlen(hname)] = '\0';
return 1;
}
Expand Down

0 comments on commit 897ffda

Please sign in to comment.