Module Name: src
Committed By: roy
Date: Tue Feb 25 14:10:09 UTC 2014
Modified Files:
src/external/bsd/dhcpcd/dist: dhcpcd.c
Log Message:
Build with FORTIFY_SOURCE
To generate a diff of this commit:
cvs rdiff -u -r1.1.1.41 -r1.2 src/external/bsd/dhcpcd/dist/dhcpcd.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/dhcpcd/dist/dhcpcd.c
diff -u src/external/bsd/dhcpcd/dist/dhcpcd.c:1.1.1.41 src/external/bsd/dhcpcd/dist/dhcpcd.c:1.2
--- src/external/bsd/dhcpcd/dist/dhcpcd.c:1.1.1.41 Tue Feb 25 13:14:28 2014
+++ src/external/bsd/dhcpcd/dist/dhcpcd.c Tue Feb 25 14:10:09 2014
@@ -1,5 +1,5 @@
#include <sys/cdefs.h>
- __RCSID("$NetBSD: dhcpcd.c,v 1.1.1.41 2014/02/25 13:14:28 roy Exp $");
+ __RCSID("$NetBSD: dhcpcd.c,v 1.2 2014/02/25 14:10:09 roy Exp $");
/*
* dhcpcd - DHCP client daemon
@@ -760,7 +760,7 @@ handle_hwaddr(struct dhcpcd_ctx *ctx, co
const uint8_t *hwaddr, size_t hwlen)
{
struct interface *ifp;
- char buf[hwlen * 3];
+ char buf[sizeof(ifp->hwaddr) * 3];
ifp = find_interface(ctx, ifname);
if (ifp == NULL)