about summary refs log tree commit diff
path: root/sysdeps/generic/backtracesyms.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/generic/backtracesyms.c')
-rw-r--r--sysdeps/generic/backtracesyms.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/generic/backtracesyms.c b/sysdeps/generic/backtracesyms.c
index 76019eec3d..77988833d3 100644
--- a/sysdeps/generic/backtracesyms.c
+++ b/sysdeps/generic/backtracesyms.c
@@ -1,5 +1,5 @@
 /* Return list with names for address in backtrace.
-   Copyright (C) 1998 Free Software Foundation, Inc.
+   Copyright (C) 1998, 2000 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
 
@@ -37,8 +37,8 @@ __backtrace_symbols (array, size)
   char **result;
 
   /* We can compute the text size needed for the symbols since we print
-     them all as "[%<addr>]".  */
-  total = size * (WORD_WIDTH + 3);
+     them all as "[+0x<addr>]".  */
+  total = size * (WORD_WIDTH + 6);
 
   /* Allocate memory for the result.  */
   result = malloc (size * sizeof (char *) + total);