summaryrefslogtreecommitdiff
path: root/usr.sbin/hostapd/parse.y
diff options
context:
space:
mode:
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);