1
1

- fix wrong write length, we have to write the amount of data that is used and not free

- replace numeric constant by symbolic name

This commit was SVN r9288.
Этот коммит содержится в:
Sven Stork 2006-03-15 15:06:09 +00:00
родитель 115a3cdd1a
Коммит bfa59f07b3

Просмотреть файл

@ -287,7 +287,7 @@ static void opal_show_stackframe (int signo, siginfo_t * info, void * p)
#endif #endif
} }
write(1, print_buffer, size); write(fileno(stderr), print_buffer, sizeof(print_buffer)-size);
fflush(stderr); fflush(stderr);
#ifdef HAVE_BACKTRACE #ifdef HAVE_BACKTRACE
@ -300,7 +300,7 @@ static void opal_show_stackframe (int signo, siginfo_t * info, void * p)
} }
#endif #endif
write(1, eof_msg, sizeof(eof_msg)); write(fileno(stderr), eof_msg, sizeof(eof_msg));
fflush(stderr); fflush(stderr);
} }