Use STDERR_FILENO instead of magic number

This commit is contained in:
Christian Göttsche 2021-05-16 19:55:51 +02:00
parent 1f5f40c091
commit d2ee40597c

2
CRT.c
View File

@ -972,7 +972,7 @@ void CRT_handleSIGSEGV(int signal) {
void *backtraceArray[256];
size_t size = backtrace(backtraceArray, ARRAYSIZE(backtraceArray));
backtrace_symbols_fd(backtraceArray, size, 2);
backtrace_symbols_fd(backtraceArray, size, STDERR_FILENO);
fprintf(stderr,
"---\n"
"\n"