diff --git a/zstring.cs b/zstring.cs index 04d7693..8b5c036 100644 --- a/zstring.cs +++ b/zstring.cs @@ -766,6 +766,8 @@ private unsafe static void memcpy(char* dest, char* src, int count) } private unsafe static void byteCopy(byte* dest, byte* src, int byteCount) { + Buffer.MemoryCopy(src, dest, byteCount, byteCount); + return; if (byteCount < 128) { goto g64;