diff options
author | maxim <maxim@FreeBSD.org> | 2006-01-29 17:32:39 +0000 |
---|---|---|
committer | maxim <maxim@FreeBSD.org> | 2006-01-29 17:32:39 +0000 |
commit | d1df6904eb958594c3bb15485c0f67e4a8227a96 (patch) | |
tree | 9c47e7ebf58aa257845195f5a216556a39207b21 /sbin | |
parent | 1a1e6269dca8546d2fc0f22e9cf7795be92d814f (diff) | |
download | FreeBSD-src-d1df6904eb958594c3bb15485c0f67e4a8227a96.zip FreeBSD-src-d1df6904eb958594c3bb15485c0f67e4a8227a96.tar.gz |
Fix an off-by-one error.
Reviewed by: sam
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/ifconfig/ifieee80211.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/ifconfig/ifieee80211.c b/sbin/ifconfig/ifieee80211.c index 78e5f56..d45a457 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] = ':'; |