summaryrefslogtreecommitdiffstats
path: root/dhcpcd.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-08-07 11:42:14 +0000
committerRoy Marples <roy@marples.name>2008-08-07 11:42:14 +0000
commitaf94aa169458928a6cd681b0b46a50ed01cc77d8 (patch)
tree6cdff58fc270513bb2e44641d4e84228d7fcf996 /dhcpcd.h
parente837a67042f3b3d128068214774d22d0657168ac (diff)
downloaddhcpcd-af94aa169458928a6cd681b0b46a50ed01cc77d8.tar.xz
We need to reserve a byte for initial length also.
Diffstat (limited to 'dhcpcd.h')
-rw-r--r--dhcpcd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcpcd.h b/dhcpcd.h
index 068a65eb..d3d98b10 100644
--- 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