--- a/strings.c
+++ b/strings.c
@@ -196,7 +196,7 @@ Routine Description:
                 goto Done;
             } 
 
-            if(ByteOffset + DataBuffer > CurrentBufferOffset+ByteOffset)
+            if(ByteOffset + DataBuffer > (PCHAR)CurrentBufferOffset+ByteOffset)
             {
                 goto Done;
             }
