You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by tn...@apache.org on 2002/09/27 21:25:10 UTC
cvs commit: xml-xerces/c/samples/SAXCount SAXCount.cpp
tng 2002/09/27 12:25:10
Modified: c/samples/SAXCount SAXCount.cpp
Log:
Samples Fix: wrong length in memset
Revision Changes Path
1.22 +4 -1 xml-xerces/c/samples/SAXCount/SAXCount.cpp
Index: SAXCount.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/samples/SAXCount/SAXCount.cpp,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- SAXCount.cpp 17 Jul 2002 18:58:36 -0000 1.21
+++ SAXCount.cpp 27 Sep 2002 19:25:10 -0000 1.22
@@ -56,6 +56,9 @@
/*
* $Log$
+* Revision 1.22 2002/09/27 19:25:10 tng
+* Samples Fix: wrong length in memset
+*
* Revision 1.21 2002/07/17 18:58:36 tng
* samples update: for testing special encoding purpose.
*
@@ -313,7 +316,7 @@
{
char fURI[1000];
//initialize the array to zeros
- memset(fURI,0,sizeof(fURI));
+ memset(fURI,0,strlen(fURI));
if (doList) {
if (! fin.eof() ) {
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org