Index: motion.c =================================================================== --- motion.c (revision 442) +++ motion.c (working copy) @@ -2738,9 +2738,6 @@ { int errno_save, n; char buf[1024]; -#if (!defined(BSD)) - char msg_buf[100]; -#endif va_list ap; int threadnr; @@ -2772,11 +2769,7 @@ * version of strerror_r, which doesn't actually put the message into * my buffer :-(. I have put in a 'hack' to get around this. */ -#if (defined(BSD)) strerror_r(errno_save, buf + n, sizeof(buf) - n); /* 2 for the ': ' */ -#else - strcat(buf, strerror_r(errno_save, msg_buf, sizeof(msg_buf))); -#endif } /* If 'level' is not negative, send the message to the syslog */ if (level >= 0)