summaryrefslogtreecommitdiffstats
path: root/CRT.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2011-08-26 20:56:39 +0000
committerHisham Muhammad <hisham@gobolinux.org>2011-08-26 20:56:39 +0000
commit7eeb52dfbb881e6094c2043c8ee87495b4c72a17 (patch)
tree361285afa79038412106790f556d30caf23d20a6 /CRT.c
parent717758409e24b42dba8fbf1ac77c6fdf524efc12 (diff)
Fix number of supported backtrace frames (thanks to Sebastian Pipping)
Diffstat (limited to 'CRT.c')
-rw-r--r--CRT.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/CRT.c b/CRT.c
index 5573890f..9c3d9490 100644
--- a/CRT.c
+++ b/CRT.c
@@ -128,7 +128,7 @@ static void CRT_handleSIGSEGV(int sgn) {
#if __linux
fprintf(stderr, "\n\nhtop " VERSION " aborting. Please report bug at http://htop.sf.net\n");
#ifdef HAVE_EXECINFO_H
- size_t size = backtrace(backtraceArray, sizeof(backtraceArray));
+ size_t size = backtrace(backtraceArray, sizeof(backtraceArray) / sizeof(void *));
fprintf(stderr, "Backtrace: \n");
backtrace_symbols_fd(backtraceArray, size, 2);
#endif

© 2014-2024 Faster IT GmbH | imprint | privacy policy