1 diff -u -r ../elfutils-0.166/libdwfl/dwfl_error.c ./libdwfl/dwfl_error.c
2 --- ../elfutils-0.166/libdwfl/dwfl_error.c 2015-11-27 08:36:29.000000000 -0500
3 +++ ./libdwfl/dwfl_error.c 2016-05-04 13:15:42.522820139 -0400
6 dwfl_errmsg (int error)
9 if (error == 0 || error == -1)
11 int last_error = global_error;
13 switch (error &~ 0xffff)
15 case OTHER_ERROR (ERRNO):
16 - return strerror_r (error & 0xffff, "bad", 0);
17 + error_msg = malloc(256);
18 + strerror_r (error & 0xffff, error_msg, 256);
20 case OTHER_ERROR (LIBELF):
21 return elf_errmsg (error & 0xffff);
22 case OTHER_ERROR (LIBDW):