about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--debug/backtracesymsfd.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/debug/backtracesymsfd.c b/debug/backtracesymsfd.c
index ce784a9b2b..f68a4830e7 100644
--- a/debug/backtracesymsfd.c
+++ b/debug/backtracesymsfd.c
@@ -95,8 +95,14 @@ __backtrace_symbols_fd (void *const *array, int size, int fd)
 				   - (char *) iov[last].iov_base);
 	      ++last;
 
-	      iov[last].iov_base = (void *) ")";
-	      iov[last].iov_len = 1;
+	      iov[last].iov_base = (void *) ") ";
+	      iov[last].iov_len = 2;
+	      ++last;
+	    }
+	  else
+	    {
+	      iov[last].iov_base = (void *) "() ";
+	      iov[last].iov_len = 3;
 	      ++last;
 	    }
 	}