summary refs log tree commit diff
path: root/sysdeps/generic/elf
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/generic/elf')
-rw-r--r--sysdeps/generic/elf/backtracesyms.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/generic/elf/backtracesyms.c b/sysdeps/generic/elf/backtracesyms.c
index 9941644f66..4147d956eb 100644
--- a/sysdeps/generic/elf/backtracesyms.c
+++ b/sysdeps/generic/elf/backtracesyms.c
@@ -53,8 +53,8 @@ __backtrace_symbols (array, size)
 	   "<fct-name>(<sym-name>)[+offset].  */
 	total += (strlen (info[cnt].dli_fname ?: "")
 		  + (info[cnt].dli_sname
-		     ? strlen (info[cnt].dli_sname) + 2
-		     : 0)
+		     ? strlen (info[cnt].dli_sname) + 3
+		     : 1)
 		  + WORD_WIDTH + 6);
       else
 	total += 6 + WORD_WIDTH;