From: Roy Marples Date: Thu, 7 Aug 2008 11:42:14 +0000 (+0000) Subject: We need to reserve a byte for initial length also. X-Git-Tag: v4.0.2~76 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af94aa169458928a6cd681b0b46a50ed01cc77d8;p=thirdparty%2Fdhcpcd.git We need to reserve a byte for initial length also. --- 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