forked from pool/elfutils
0ffa4541ff
Fix build with gcc 4.7;update to 0.153 OBS-URL: https://build.opensuse.org/request/show/109477 OBS-URL: https://build.opensuse.org/package/show/Base:System/elfutils?expand=0&rev=36
27 lines
923 B
Diff
27 lines
923 B
Diff
--- elfutils/src/addr2line.c
|
|
+++ elfutils/src/addr2line.c
|
|
@@ -455,10 +455,10 @@ handle_address (const char *string, Dwfl
|
|
bool parsed = false;
|
|
int i, j;
|
|
char *name = NULL;
|
|
- if (sscanf (string, "(%m[^)])%" PRIiMAX "%n", &name, &addr, &i) == 2
|
|
+ if (sscanf (string, "(%a[^)])%" PRIiMAX "%n", &name, &addr, &i) == 2
|
|
&& string[i] == '\0')
|
|
parsed = adjust_to_section (name, &addr, dwfl);
|
|
- switch (sscanf (string, "%m[^-+]%n%" PRIiMAX "%n", &name, &i, &addr, &j))
|
|
+ switch (sscanf (string, "%a[^-+]%n%" PRIiMAX "%n", &name, &i, &addr, &j))
|
|
{
|
|
default:
|
|
break;
|
|
--- elfutils/tests/line2addr.c
|
|
+++ elfutils/tests/line2addr.c
|
|
@@ -132,7 +132,7 @@ main (int argc, char *argv[])
|
|
{
|
|
struct args a = { .arg = argv[cnt] };
|
|
|
|
- switch (sscanf (a.arg, "%m[^:]:%d", &a.file, &a.line))
|
|
+ switch (sscanf (a.arg, "%a[^:]:%d", &a.file, &a.line))
|
|
{
|
|
default:
|
|
case 0:
|