From 50359973df1ea8fa5df4e9852178ddb0c66fdd79 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 2 Dec 2015 20:46:51 +0100 Subject: derp! MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/rq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rq.c b/src/rq.c index 4cbf628..349e6d5 100644 --- a/src/rq.c +++ b/src/rq.c @@ -268,7 +268,7 @@ static int load_file(int fd) for (s = buffer; *s; s = end + 1) { if (word_count == size) { size = size ? (size << 1) : 512; - new = realloc(words, size * sizeof(char*)); + new = realloc(words, size * sizeof(*words)); t (new == NULL); words = new; } -- cgit v1.2.3-70-g09d2