Skip to content

Commit

Permalink
Fix format string bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ice799 committed May 18, 2010
1 parent a429e75 commit 965cc23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/mach.c
Expand Up @@ -130,9 +130,9 @@ find_stub_addr(const char *symname, struct mach_config *img_cfg)

if (strcmp(symname, string+1) == 0) {
if (stubaddr) {
dbg_printf("address of stub in %s for %s is %" PRIx64 " + %" PRIx64 " = ", img_cfg->filename, string, stubaddr, img_cfg->load_addr);
dbg_printf("address of stub in %s for %s is %" PRIx64 " + %p = ", img_cfg->filename, string, stubaddr, img_cfg->load_addr);
stubaddr = (uint64_t)img_cfg->load_addr + stubaddr;
dbg_printf("%" PRIdx4 "\n", stubaddr);
dbg_printf("%" PRIx64 "\n", stubaddr);
return (void *)stubaddr;
}
}
Expand Down

0 comments on commit 965cc23

Please sign in to comment.