diff --git a/samples/DOMCount/DOMCount.cpp b/samples/DOMCount/DOMCount.cpp index 7a95dcf15102cd4755c00a121ccc1c8c768e5ff0..8f9239ff2781c33a1a774844da42ce12e5bd937c 100644 --- a/samples/DOMCount/DOMCount.cpp +++ b/samples/DOMCount/DOMCount.cpp @@ -284,7 +284,7 @@ int main(int argC, char* argV[]) { char fURI[1000]; //initialize the array to zeros - memset(fURI,0,sizeof(fURI)); + memset(fURI,0,strlen(fURI)); if (doList) { if (! fin.eof() ) { diff --git a/samples/SAX2Count/SAX2Count.cpp b/samples/SAX2Count/SAX2Count.cpp index 10e5722d1b743e64ffea0644475c54bbc41fa4d0..80f9ddde580f0b3c37d18b3de0976f635bf36f48 100644 --- a/samples/SAX2Count/SAX2Count.cpp +++ b/samples/SAX2Count/SAX2Count.cpp @@ -56,6 +56,9 @@ /* * $Log$ +* Revision 1.19 2002/09/27 19:24:57 tng +* Samples Fix: wrong length in memset +* * Revision 1.18 2002/07/17 18:58:35 tng * samples update: for testing special encoding purpose. * @@ -318,7 +321,7 @@ int main(int argC, char* argV[]) { char fURI[1000]; //initialize the array to zeros - memset(fURI,0,sizeof(fURI)); + memset(fURI,0,strlen(fURI)); if (doList) { if (! fin.eof() ) { diff --git a/samples/SAXCount/SAXCount.cpp b/samples/SAXCount/SAXCount.cpp index 22400553f65e153ba8c665d70bacdef7ec7590fc..58902728a23ac53685c3d62017e7f637625a91e0 100644 --- a/samples/SAXCount/SAXCount.cpp +++ b/samples/SAXCount/SAXCount.cpp @@ -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 @@ int main(int argC, char* argV[]) { char fURI[1000]; //initialize the array to zeros - memset(fURI,0,sizeof(fURI)); + memset(fURI,0,strlen(fURI)); if (doList) { if (! fin.eof() ) {