--- libaitwww/inc/defs.h 2012/07/22 21:58:29 1.2 +++ libaitwww/inc/defs.h 2012/08/01 00:40:40 1.3 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: defs.h,v 1.2 2012/07/22 21:58:29 misho Exp $ +* $Id: defs.h,v 1.3 2012/08/01 00:40:40 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -50,16 +50,21 @@ SUCH DAMAGE. #ifndef STRSIZ #define STRSIZ 256 #endif +#ifndef CRLF #define CRLF "\r\n" +#endif +#ifndef LF +#define LF "\n" +#endif #define LOGERR { \ www_Errno = errno; \ - strlcpy(www_Error, strerror(errno), STRSIZ); \ + strlcpy(www_Error, strerror(errno), sizeof www_Error); \ } extern int www_Errno; -extern char www_Error[]; +extern char www_Error[STRSIZ]; inline void www_SetErr(int eno, char *estr, ...);