--- libaitpelco/src/aitpelco.c 2011/05/10 20:26:08 1.2 +++ libaitpelco/src/aitpelco.c 2012/07/22 22:21:50 1.3 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitpelco.c,v 1.2 2011/05/10 20:26:08 misho Exp $ +* $Id: aitpelco.c,v 1.3 2012/07/22 22:21:50 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -12,7 +12,7 @@ terms: All of the documentation and software included in the ELWIX and AITNET Releases is copyrighted by ELWIX - Sofia/Bulgaria -Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 +Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 by Michael Pounov . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -76,9 +76,9 @@ pelcoSetErr(int eno, char *estr, ...) va_list lst; pelco_Errno = eno; - memset(pelco_Error, 0, STRSIZ); + memset(pelco_Error, 0, sizeof pelco_Error); va_start(lst, estr); - vsnprintf(pelco_Error, STRSIZ, estr, lst); + vsnprintf(pelco_Error, sizeof pelco_Error, estr, lst); va_end(lst); }