Skip to content

Commit

Permalink
Fixed bug in allocation of output order arrays. Not clear how the pre…
Browse files Browse the repository at this point in the history
…vious iteration passed its tests!
  • Loading branch information
RoryBarnes committed Sep 12, 2024
1 parent 1d4d1e8 commit db2121c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/options.c
Original file line number Diff line number Diff line change
Expand Up @@ -2617,7 +2617,7 @@ void fvAllocateOutputArrays(char ****saMatch, char ***saOutput, int **baNeg,

for (iIndex = 0; iIndex < iNumArgs; iIndex++) {
(*saMatch)[iIndex] =
malloc(MAXARRAY * sizeof(int)); // Could be this many matches
malloc(MAXARRAY * sizeof(char*)); // Could be this many matches
for (iMatch = 0; iMatch < MAXARRAY; iMatch++) {
(*saMatch)[iIndex][iMatch] = NULL;
}
Expand Down

0 comments on commit db2121c

Please sign in to comment.