diff options
| author | Roy Marples <roy@marples.name> | 2014-02-25 14:11:35 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2014-02-25 14:11:35 +0000 |
| commit | 1989cad379da2048df870f365903b8f4226cd5c8 (patch) | |
| tree | ae6d590f3f1f52fd8033354c1e04a54fca3dcb39 /dhcpcd.c | |
| parent | db67f1e285b2972e43552e63522bd9efbefc822a (diff) | |
| download | dhcpcd-1989cad379da2048df870f365903b8f4226cd5c8.tar.xz | |
Don't use a variable length buffer
Diffstat (limited to 'dhcpcd.c')
| -rw-r--r-- | dhcpcd.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -757,7 +757,7 @@ handle_hwaddr(struct dhcpcd_ctx *ctx, const char *ifname, 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) |
