Skip to content

Commit

Permalink
Merge pull request #161 from jeromekelleher/fix-stack-allocation2
Browse files Browse the repository at this point in the history
Fix allocation from stack bug.
  • Loading branch information
andrewjpage committed Feb 29, 2016
2 parents 49db81e + 3960753 commit 1b4b312
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/snp_sites.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ int generate_snp_sites(char filename[], int exclude_gaps, char suffix[])
internal_nodes[a] = 0;
}

char* bases_for_snps[number_of_snps];
char** bases_for_snps = malloc(number_of_snps * sizeof(char *));

for(i = 0; i < number_of_snps; i++)
{
Expand Down

0 comments on commit 1b4b312

Please sign in to comment.