summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-11-15 22:13:31 -0500
committermidipix <writeonce@midipix.org>2016-11-15 22:22:27 -0500
commit4a8ae6852ebb02de17e30b08248a8ffdc05d4620 (patch)
tree54869a8a9ecc2baa3560a72ec3b4bd9d0baab13d /src
parenta8c6cb316b44e95facba8a5cd1033d419f905cbe (diff)
downloadperk-4a8ae6852ebb02de17e30b08248a8ffdc05d4620.tar.bz2
perk-4a8ae6852ebb02de17e30b08248a8ffdc05d4620.tar.xz
pe_get_image_meta(): properly cast from void * to const unsigned char *.
Diffstat (limited to 'src')
-rw-r--r--src/logic/pe_get_image_meta.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/logic/pe_get_image_meta.c b/src/logic/pe_get_image_meta.c
index 70a057b..8301bfc 100644
--- a/src/logic/pe_get_image_meta.c
+++ b/src/logic/pe_get_image_meta.c
@@ -168,7 +168,7 @@ int pe_get_image_meta(
int i,s;
long l;
unsigned j;
- unsigned char * mark;
+ const unsigned char * mark;
struct pe_image_meta * m;
char * base;
@@ -189,7 +189,7 @@ int pe_get_image_meta(
return pe_free_image_meta_impl(
m,PERK_CUSTOM_ERROR(dctx,ret));
- mark = image->addr + m->coff.ptr_to_sym_tbl;
+ mark = (const unsigned char *)image->addr + m->coff.ptr_to_sym_tbl;
mark += m->coff.num_of_syms * sizeof(struct pe_coff_sym_entry);
m->coff.ptr_to_string_tbl = m->coff.ptr_to_sym_tbl;