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
1 changed files with 1 additions and 1 deletions

2
CRT.c
View File

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