Skip to content

Commit

Permalink
fixed another issue with site compression memory allocation
Browse files Browse the repository at this point in the history
  • Loading branch information
xflouris committed Jul 12, 2017
1 parent 8d55035 commit 74a1ee5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compress.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ PLL_EXPORT unsigned int * pll_compress_site_patterns(char ** sequence,
}

/* allocate memory for the alignment */
memptr = column[0] = (char *)malloc((size_t)((*length)+1) *
(size_t)count *
memptr = column[0] = (char *)malloc((size_t)(*length) *
(size_t)(count+1) *
sizeof(char));
if (!memptr)
{
Expand Down

0 comments on commit 74a1ee5

Please sign in to comment.