summaryrefslogtreecommitdiff
path: root/tccpe.c
diff options
context:
space:
mode:
Diffstat (limited to 'tccpe.c')
-rw-r--r--tccpe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tccpe.c b/tccpe.c
index 26fb229..020f359 100644
--- a/tccpe.c
+++ b/tccpe.c
@@ -732,7 +732,7 @@ static int pe_write(struct pe_info *pe)
memcpy(psh->Name, sh_name, umin(strlen(sh_name), sizeof psh->Name));
if (si->cls == sec_debug)
- need_strtab += pe_put_long_secname(psh->Name, sh_name);
+ need_strtab += pe_put_long_secname((char*)psh->Name, sh_name);
psh->Characteristics = si->pe_flags;
psh->VirtualAddress = addr;