diff --git a/src/port.h b/src/port.h
index af8fc0ddbb89805f992d4609a5f69d8491eb6dbd..993b43ad2d826b5be925e8bbc2b3d5a8ec569f3e 100644
--- a/src/port.h
+++ b/src/port.h
@@ -77,7 +77,7 @@ char *MEMMOVE(char *b,const char *a,int s);
 #ifndef HAVE_MEMCMP
 int MEMCMP(const char *b,const char *a,int s);
 #else
-#  define MEMCMP(X,Y,Z) memcmp((char*)(X),(char*)(Y),(char*)(Z))
+#  define MEMCMP(X,Y,Z) memcmp((char*)(X),(char*)(Y),(Z))
 #endif
 
 #ifndef HAVE_MEMCHR