From 3b4c5ef114275fc518973695acf508b456f8466d Mon Sep 17 00:00:00 2001 From: Petr Danecek Date: Tue, 4 Jan 2011 11:55:56 +0000 Subject: [PATCH] Fixed a typo in read_samples --- bcftools/call1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bcftools/call1.c b/bcftools/call1.c index 0991fce..809fe34 100644 --- a/bcftools/call1.c +++ b/bcftools/call1.c @@ -214,7 +214,7 @@ static char **read_samples(const char *fn, int *_n) while (ks_getuntil(ks, 0, &s, &dret) >= 0) { if (max == n) { max = max? max<<1 : 4; - sam = realloc(sam, sizeof(void*)); + sam = realloc(sam, sizeof(void*)*max); } sam[n++] = strdup(s.s); } -- 2.39.2