Skip to content
Snippets Groups Projects
Commit cbfa1748 authored by Tinny Ng's avatar Tinny Ng
Browse files

Samples Fix: wrong length in memset

git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@174258 13f79535-47bb-0310-9956-ffa450edef68
parent 40da4f33
No related branches found
No related tags found
No related merge requests found
...@@ -232,7 +232,7 @@ int main(int argC, char* argV[]) ...@@ -232,7 +232,7 @@ int main(int argC, char* argV[])
{ {
char fURI[1000]; char fURI[1000];
//initialize the array to zeros //initialize the array to zeros
memset(fURI,0,sizeof(fURI)); memset(fURI,0,strlen(fURI));
if (doList) { if (doList) {
if (! fin.eof() ) { if (! fin.eof() ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment