summaryrefslogtreecommitdiffstats
path: root/package/busybox/busybox-1.16.1-dhcpd.patch
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2010-05-16 22:29:41 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2010-05-16 22:29:41 +0200
commit7bb2b4826e9b129f6b1b1bba2847b15a10641a95 (patch)
treec3500f681fb10cd6e02d457ee1fd4fdc49b9aaec /package/busybox/busybox-1.16.1-dhcpd.patch
parent7b7a3166634c61ec9673e591126ea99c05b1d2df (diff)
downloadbuildroot-novena-7bb2b4826e9b129f6b1b1bba2847b15a10641a95.tar.gz
buildroot-novena-7bb2b4826e9b129f6b1b1bba2847b15a10641a95.zip
busybox: 1.16.1 fixes for dhcpd and sed
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/busybox/busybox-1.16.1-dhcpd.patch')
-rw-r--r--package/busybox/busybox-1.16.1-dhcpd.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/package/busybox/busybox-1.16.1-dhcpd.patch b/package/busybox/busybox-1.16.1-dhcpd.patch
new file mode 100644
index 000000000..6867e2476
--- /dev/null
+++ b/package/busybox/busybox-1.16.1-dhcpd.patch
@@ -0,0 +1,12 @@
+diff -urpN busybox-1.16.1/networking/udhcp/leases.c busybox-1.16.1-dhcpd/networking/udhcp/leases.c
+--- busybox-1.16.1/networking/udhcp/leases.c 2010-03-28 19:43:36.000000000 +0200
++++ busybox-1.16.1-dhcpd/networking/udhcp/leases.c 2010-05-15 20:47:08.000000000 +0200
+@@ -64,6 +64,8 @@ struct dyn_lease* FAST_FUNC add_lease(
+ oldest->hostname[0] = '\0';
+ if (hostname) {
+ char *p;
++
++ hostname_len++; /* include NUL */
+ if (hostname_len > sizeof(oldest->hostname))
+ hostname_len = sizeof(oldest->hostname);
+ p = safe_strncpy(oldest->hostname, hostname, hostname_len);