diff --git a/src/xercesc/util/Transcoders/Iconv390/Iconv390TransService.cpp b/src/xercesc/util/Transcoders/Iconv390/Iconv390TransService.cpp
index 03cce43305f42a5265a8b50e6ff2e88aabbab0e8..94d79225d3b26475326922489d118a5a4796d445 100644
--- a/src/xercesc/util/Transcoders/Iconv390/Iconv390TransService.cpp
+++ b/src/xercesc/util/Transcoders/Iconv390/Iconv390TransService.cpp
@@ -1,7 +1,7 @@
 /*
  * The Apache Software License, Version 1.1
  *
- * Copyright (c) 1999-2000 The Apache Software Foundation.  All rights
+ * Copyright (c) 1999-2004 The Apache Software Foundation.  All rights
  * reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -382,7 +382,7 @@ unsigned int Iconv390LCPTranscoder::calcRequiredSize(const XMLCh* const srcText
     if (wLent >= gTempBuffArraySize)
         wideCharBuf = allocatedArray = (wchar_t*) manager->allocate
         (
-            (wLent + 1) * sizeof(wLent + 1)
+            (wLent + 1) * sizeof(wchar_t)
         );//new wchar_t[wLent + 1];
     else
         wideCharBuf = tmpWideCharArr;
diff --git a/src/xercesc/util/Transcoders/Win32/Win32TransService.cpp b/src/xercesc/util/Transcoders/Win32/Win32TransService.cpp
index 06e11b0a321a82be012a30dcb6580c825033c166..6479badb4d11d1bdfc0e26152f002adcc6cee193 100644
--- a/src/xercesc/util/Transcoders/Win32/Win32TransService.cpp
+++ b/src/xercesc/util/Transcoders/Win32/Win32TransService.cpp
@@ -1,7 +1,7 @@
 /*
  * The Apache Software License, Version 1.1
  *
- * Copyright (c) 1999-2000 The Apache Software Foundation.  All rights
+ * Copyright (c) 1999-2004 The Apache Software Foundation.  All rights
  * reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -989,7 +989,7 @@ XMLCh* Win32LCPTranscoder::transcode(const char* const toTranscode,
     }
      else
     {
-        retVal = (XMLCh*) manager->allocate(sizeof(XMLCh*)); //new XMLCh[1];
+        retVal = (XMLCh*) manager->allocate(sizeof(XMLCh)); //new XMLCh[1];
         retVal[0] = 0;
     }
     return retVal;