diff --git a/src/xercesc/framework/LocalFileInputSource.cpp b/src/xercesc/framework/LocalFileInputSource.cpp
index eef249fee522a83f00f29eddf11eef4b70ee45f0..1e09dc2a067308280fafc248e4c6ccfa48f04b2d 100644
--- a/src/xercesc/framework/LocalFileInputSource.cpp
+++ b/src/xercesc/framework/LocalFileInputSource.cpp
@@ -159,12 +159,9 @@ LocalFileInputSource::LocalFileInputSource(const XMLCh* const filePath)
         int    filePathLen = XMLString::stringLen(filePath);
         XMLCh* fullDir = new XMLCh [ curDirLen + filePathLen + 2];
 
-        fullDir[0] = 0;
         XMLString::copyString(fullDir, curDir);
         fullDir[curDirLen] = chForwardSlash;
-        fullDir[curDirLen+1] = 0;
-        XMLString::catString(&fullDir[curDirLen+1], filePath);
-        fullDir[curDirLen+filePathLen+1] = 0;
+        XMLString::copyString(&fullDir[curDirLen+1], filePath);
         
         XMLPlatformUtils::removeDotSlash(fullDir);
         XMLPlatformUtils::removeDotDotSlash(fullDir);