aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/rq.c2
1 files changed, 1 insertions, 1 deletions
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;
}