add a space between safemalloc error mesage and a stack trace

This commit is contained in:
Sergei Golubchik 2012-04-18 03:29:26 +02:00
parent e3650f3799
commit 415507d392

View File

@ -246,6 +246,7 @@ static void warn(const char *format,...)
{
void *frame[SF_REMEMBER_FRAMES + SF_FRAMES_SKIP];
int frames= backtrace(frame, array_elements(frame));
fprintf(stderr, " ");
if (frames < SF_REMEMBER_FRAMES + SF_FRAMES_SKIP)
frame[frames]= 0;
print_stack(frame + SF_FRAMES_SKIP);