From 8a4fabbd238fa85bc475c8840837c0069a125eb5 Mon Sep 17 00:00:00 2001 From: Maxim Konovalov Date: Sun, 29 Jan 2006 17:32:39 +0000 Subject: [PATCH] Fix an off-by-one error. Reviewed by: sam --- sbin/ifconfig/ifieee80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/ifconfig/ifieee80211.c b/sbin/ifconfig/ifieee80211.c index 78e5f56aa70..d45a45786ec 100644 --- a/sbin/ifconfig/ifieee80211.c +++ b/sbin/ifconfig/ifieee80211.c @@ -475,7 +475,7 @@ set80211bssid(const char *val, int d, int s, const struct afswtch *rafp) char *temp; struct sockaddr_dl sdl; - temp = malloc(strlen(val) + 1); + temp = malloc(strlen(val) + 2); if (temp == NULL) errx(1, "malloc failed"); temp[0] = ':';