aboutsummaryrefslogtreecommitdiffstats
path: root/src/rq.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-12-02 20:46:51 +0100
committerMattias Andrée <maandree@operamail.com>2015-12-02 20:46:55 +0100
commit50359973df1ea8fa5df4e9852178ddb0c66fdd79 (patch)
tree26bd40cd2547fc737dadab2be5e6fbe4b5d2d1e4 /src/rq.c
parentdist (diff)
downloadread-quickly-50359973df1ea8fa5df4e9852178ddb0c66fdd79.tar.gz
read-quickly-50359973df1ea8fa5df4e9852178ddb0c66fdd79.tar.bz2
read-quickly-50359973df1ea8fa5df4e9852178ddb0c66fdd79.tar.xz
derp!1.0.1
Signed-off-by: Mattias Andrée <maandree@operamail.com>
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;
}