--- libaitwww/src/aitwww.c 2012/03/10 15:55:42 1.2.2.1 +++ libaitwww/src/aitwww.c 2012/07/31 11:56:16 1.3.4.1 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitwww.c,v 1.2.2.1 2012/03/10 15:55:42 misho Exp $ +* $Id: aitwww.c,v 1.3.4.1 2012/07/31 11:56:16 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -44,7 +44,6 @@ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF TH SUCH DAMAGE. */ #include "global.h" -#include "tools.h" #include "mime.h" @@ -76,9 +75,9 @@ www_SetErr(int eno, char *estr, ...) va_list lst; www_Errno = eno; - memset(www_Error, 0, STRSIZ); + memset(www_Error, 0, sizeof www_Errno); va_start(lst, estr); - vsnprintf(www_Error, STRSIZ, estr, lst); + vsnprintf(www_Error, sizeof www_Errno, estr, lst); va_end(lst); }