satyr/satyr-0.14-wformat.patch

14 lines
490 B
Diff
Raw Normal View History

2014-06-10 15:36:46 +00:00
diff --git a/lib/core_unwind_elfutils.c b/lib/core_unwind_elfutils.c
index b4d3aed..6b904c7 100644
--- a/lib/core_unwind_elfutils.c
+++ b/lib/core_unwind_elfutils.c
@@ -166,7 +166,7 @@ sr_parse_coredump(const char *core_file,
set_error_dwfl("dwfl_getthreads");
else if (ret == DWARF_CB_ABORT)
{
- set_error(thread_arg.error_msg);
+ set_error("%s", thread_arg.error_msg);
free(thread_arg.error_msg);
}
else