[Buildroot] svn commit: [26212] trunk/buildroot/package/busybox
jacmet at uclibc.org
jacmet at uclibc.org
Sun Apr 26 21:17:29 UTC 2009
Author: jacmet
Date: 2009-04-26 21:17:29 +0000 (Sun, 26 Apr 2009)
New Revision: 26212
Log:
busybox: 1.14.0 dhcp fix
Added:
trunk/buildroot/package/busybox/busybox-1.14.0-dhcp_hostname.patch
Changeset:
Added: trunk/buildroot/package/busybox/busybox-1.14.0-dhcp_hostname.patch
===================================================================
--- trunk/buildroot/package/busybox/busybox-1.14.0-dhcp_hostname.patch (rev 0)
+++ trunk/buildroot/package/busybox/busybox-1.14.0-dhcp_hostname.patch 2009-04-26 21:17:29 UTC (rev 26212)
@@ -0,0 +1,12 @@
+--- busybox-1.14.0/networking/udhcp/leases.c Tue Apr 14 01:42:51 2009
++++ busybox-1.14.0-dhcp_hostname/networking/udhcp/leases.c Tue Apr 21 02:41:22 2009
+@@ -63,7 +63,8 @@
+ if (oldest) {
+ oldest->hostname[0] = '\0';
+ if (hostname) {
+- hostname_length = hostname[-1]; /* look at option size byte */
++ /* option size byte, + 1 for NUL */
++ hostname_length = hostname[-1] + 1;
+ if (hostname_length > sizeof(oldest->hostname))
+ hostname_length = sizeof(oldest->hostname);
+ hostname = (uint8_t*) safe_strncpy((char*)oldest->hostname, (char*)hostname, hostname_length);
More information about the buildroot
mailing list