From e79cc1a3e7635cf7c1d2edd765f789627296c949 Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Wed, 14 May 2014 17:06:53 +1100 Subject: [PATCH] = util.c : bitmap_diffmap --- src/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.c b/src/util.c index e9364d0..4505eab 100644 --- a/src/util.c +++ b/src/util.c @@ -133,7 +133,7 @@ int rec_bitmap(db_t *db, rec_t *sample) } for (i = 0; i < 16; i++) { - row = *(((uint16_t *) sample->data) + i); + row = *(((uint16_t *) (&sample->data[OFF_BITMAP])) + i); for (j = 0; j < 16; j++) { putchar((row & 1) == 1 ? '1' : '0'); row >>= 1;