Re: [xml] test/ crashes...

!     msg[1000] = 0;
--- 1991,1997 ----
!     msg[1000-1] = 0;

I find it better to write things like this
   msg[sizeof msg - 1] = '\0';
That way if you change the definition of msg, the right thing still
happens.  I saw that there's lots of
   snprintf(msg, 1000, ....)
I suggest using "sizeof msg" there, too.

Rich Salz                     Chief Security Architect
DataPower Technology
XS40 XML Security Gateway

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]