]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
We need to reserve a byte for initial length also.
authorRoy Marples <roy@marples.name>
Thu, 7 Aug 2008 11:42:14 +0000 (11:42 +0000)
committerRoy Marples <roy@marples.name>
Thu, 7 Aug 2008 11:42:14 +0000 (11:42 +0000)
dhcpcd.h

index 068a65eb3c069539a50d0211fee094e9dedb2c88..d3d98b1008b072c30476b46d4e1b2e9b3beb12cb 100644 (file)
--- a/dhcpcd.h
+++ b/dhcpcd.h
@@ -41,7 +41,7 @@
 #define DEFAULT_TIMEOUT                30
 #define DEFAULT_LEASETIME      3600    /* 1 hour */
 
-#define HOSTNAME_MAX_LEN       254     /* Trailing NULL for FQDN */
+#define HOSTNAME_MAX_LEN       253     /* Initial len + trailing 0 for FQDN */
 #define CLASSID_MAX_LEN                48
 #define CLIENTID_MAX_LEN       48
 #define USERCLASS_MAX_LEN      255