Fix number of supported backtrace frames (thanks to Sebastian Pipping)

This commit is contained in:
Hisham Muhammad 2011-08-26 20:56:39 +00:00
parent 717758409e
commit 7eeb52dfbb
1 changed files with 1 additions and 1 deletions

2
CRT.c
View File

@ -128,7 +128,7 @@ static void CRT_handleSIGSEGV(int sgn) {
#if __linux #if __linux
fprintf(stderr, "\n\nhtop " VERSION " aborting. Please report bug at http://htop.sf.net\n"); fprintf(stderr, "\n\nhtop " VERSION " aborting. Please report bug at http://htop.sf.net\n");
#ifdef HAVE_EXECINFO_H #ifdef HAVE_EXECINFO_H
size_t size = backtrace(backtraceArray, sizeof(backtraceArray)); size_t size = backtrace(backtraceArray, sizeof(backtraceArray) / sizeof(void *));
fprintf(stderr, "Backtrace: \n"); fprintf(stderr, "Backtrace: \n");
backtrace_symbols_fd(backtraceArray, size, 2); backtrace_symbols_fd(backtraceArray, size, 2);
#endif #endif