]> git.donarmstrong.com Git - samtools.git/blobdiff - bam2bcf.c
fixed a bug
[samtools.git] / 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;