]> git.donarmstrong.com Git - samtools.git/commitdiff
fixed a bug
authorHeng Li <lh3@live.co.uk>
Mon, 2 Aug 2010 21:00:41 +0000 (21:00 +0000)
committerHeng Li <lh3@live.co.uk>
Mon, 2 Aug 2010 21:00:41 +0000 (21:00 +0000)
bam2bcf.c

index a78e7d282c8ff2280a819ca32570a107a076d32a..d61060ed309b6dd4e5a18a9fafb0a5076c14b46f 100644 (file)
--- a/bam2bcf.c
+++ b/bam2bcf.c
@@ -191,7 +191,7 @@ int bcf_call_combine(int n, const bcf_callret1_t *calls, int ref_base /*4-bit*/,
        // set the PL array
        if (call->n < n) {
                call->n = n;
-               call->PL = realloc(call->PL, 6 * n);
+               call->PL = realloc(call->PL, 10 * n);
        }
        {
                int x, g[6], z;