summaryrefslogtreecommitdiff
path: root/usr.sbin/hostapd/parse.y
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2007-02-09 17:55:50 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2007-02-09 17:55:50 +0000
commit3210f541a2adf0a39ab7d5ff6529f0b5348f295d (patch)
treecaa667300113f43fd5d4818307bd55daf9778830 /usr.sbin/hostapd/parse.y
parentd8bc1d67f3da8eb65175402c6507f96b8c94fada (diff)
unbreak the symset function
Diffstat (limited to 'usr.sbin/hostapd/parse.y')
-rw-r--r--usr.sbin/hostapd/parse.y5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/hostapd/parse.y b/usr.sbin/hostapd/parse.y
index f4e54fe06cf..938e3e83822 100644
--- a/usr.sbin/hostapd/parse.y
+++ b/usr.sbin/hostapd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.28 2007/02/08 11:15:55 reyk Exp $ */
+/* $OpenBSD: parse.y,v 1.29 2007/02/09 17:55:49 reyk Exp $ */
/*
* Copyright (c) 2004, 2005, 2006 Reyk Floeter <reyk@openbsd.org>
@@ -1559,8 +1559,7 @@ hostapd_parse_symset(char *s)
if ((sym = (char *)malloc(len)) == NULL)
hostapd_fatal("cmdline_symset: malloc");
- if (strlcpy(sym, s, len) >= len)
- hostapd_fatal("cmdline_symset: macro too long");
+ (void)strlcpy(sym, s, len);
ret = symset(sym, val + 1, 1);