--- tclEncoding.c-orig	2006-06-08 07:48:44.000000000 +0100
+++ tclEncoding.c	2006-07-28 09:39:35.234375000 +0100
@@ -2028,9 +2028,7 @@
     *srcReadPtr = srcLen;
     *dstWrotePtr = srcLen;
     *dstCharsPtr = srcLen;
-    for ( ; --srcLen >= 0; ) {
-	*dst++ = *src++;
-    }
+    memcpy((void *) dst, (void *) src, (size_t) srcLen);
     return result;
 }
 
