Skip to content
Permalink
Browse files
Fixed wrong argument to my_snprintf()
  • Loading branch information
montywi committed Apr 6, 2018
1 parent e27bfec commit 8692973
Showing 1 changed file with 2 additions and 1 deletion.
@@ -226,7 +226,8 @@ int my_addr_resolve(void *ptr, my_addr_loc *loc)
strnmov(addr2line_binary, info.dli_fname, sizeof(addr2line_binary));
}
offset = info.dli_fbase;
len= my_snprintf(input, sizeof(input), "%p\n", ptr - offset);
len= my_snprintf(input, sizeof(input), "%llx\n",
(longlong) (ptr - offset));
if (write(in[1], input, len) <= 0)
return 3;

0 comments on commit 8692973

Please sign in to comment.