summaryrefslogtreecommitdiffstats
path: root/dhcpcd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2016-02-11 16:06:26 +0000
committerRoy Marples <roy@marples.name>2016-02-11 16:06:26 +0000
commitf5afdbdb72e50ae5f915360f812a44f0c0b76df6 (patch)
treeeba82fea8183f74b7de83664f0bef763d99ab108 /dhcpcd.c
parenta0bc96edb9c3cf921018abfbbd5904664915c234 (diff)
downloaddhcpcd-f5afdbdb72e50ae5f915360f812a44f0c0b76df6.tar.xz
Change IF_SSIDSIZE to IF_SSIDLEN to be more clear about it.
Store an extra char for a NULL terminator solely for debubgging purposes. A better fix for [be2bbe6e37].
Diffstat (limited to 'dhcpcd.c')
-rw-r--r--dhcpcd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcpcd.c b/dhcpcd.c
index 6b227bfe..4e37a681 100644
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -790,7 +790,7 @@ dhcpcd_handlecarrier(struct dhcpcd_ctx *ctx, int carrier, unsigned int flags,
dhcpcd_handleinterface(ctx, 0, ifp->name);
#endif
if (ifp->wireless) {
- uint8_t ossid[IF_SSIDSIZE];
+ uint8_t ossid[IF_SSIDLEN];
#ifdef NOCARRIER_PRESERVE_IP
size_t olen;