diff --git a/MagickCore/distribute-cache-private.h b/MagickCore/distribute-cache-private.h
index 36eaf2a..33827e8 100644
--- a/MagickCore/distribute-cache-private.h
+++ b/MagickCore/distribute-cache-private.h
@@ -34,7 +34,7 @@
     session_key;
 
   char
-    hostname[MaxTextExtent];
+    hostname[MagickPathExtent];
 
   int
     port;