Skip to content

Commit

Permalink
lib: Cast h->addr to char* in macro.
Browse files Browse the repository at this point in the history
This is a fix for commit f8b62e4.
  • Loading branch information
rwmjones committed Jul 23, 2013
1 parent 3ae8736 commit 017d179
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hivex.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ struct ntreg_hbin_block {
} __attribute__((__packed__));

#define BLOCK_ID_EQ(h,offs,eqid) \
(STREQLEN (((struct ntreg_hbin_block *)((h)->addr + (offs)))->id, (eqid), 2))
(STREQLEN (((struct ntreg_hbin_block *)((char *) (h)->addr + (offs)))->id, (eqid), 2))

static size_t
block_len (hive_h *h, size_t blkoff, int *used)
Expand Down

0 comments on commit 017d179

Please sign in to comment.