Lines 2738-2746
Link Here
|
2738 |
{ |
2738 |
{ |
2739 |
int errno_save, n; |
2739 |
int errno_save, n; |
2740 |
char buf[1024]; |
2740 |
char buf[1024]; |
2741 |
#if (!defined(BSD)) |
|
|
2742 |
char msg_buf[100]; |
2743 |
#endif |
2744 |
va_list ap; |
2741 |
va_list ap; |
2745 |
int threadnr; |
2742 |
int threadnr; |
2746 |
|
2743 |
|
Lines 2772-2782
Link Here
|
2772 |
* version of strerror_r, which doesn't actually put the message into |
2769 |
* version of strerror_r, which doesn't actually put the message into |
2773 |
* my buffer :-(. I have put in a 'hack' to get around this. |
2770 |
* my buffer :-(. I have put in a 'hack' to get around this. |
2774 |
*/ |
2771 |
*/ |
2775 |
#if (defined(BSD)) |
|
|
2776 |
strerror_r(errno_save, buf + n, sizeof(buf) - n); /* 2 for the ': ' */ |
2772 |
strerror_r(errno_save, buf + n, sizeof(buf) - n); /* 2 for the ': ' */ |
2777 |
#else |
|
|
2778 |
strcat(buf, strerror_r(errno_save, msg_buf, sizeof(msg_buf))); |
2779 |
#endif |
2780 |
} |
2773 |
} |
2781 |
/* If 'level' is not negative, send the message to the syslog */ |
2774 |
/* If 'level' is not negative, send the message to the syslog */ |
2782 |
if (level >= 0) |
2775 |
if (level >= 0) |