mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-23 22:55:46 +00:00
Fix number of supported backtrace frames (thanks to Sebastian Pipping)
This commit is contained in:
parent
717758409e
commit
7eeb52dfbb
2
CRT.c
2
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
|
||||
|
Loading…
Reference in New Issue
Block a user