diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2007-02-09 17:55:50 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2007-02-09 17:55:50 +0000 |
commit | 3210f541a2adf0a39ab7d5ff6529f0b5348f295d (patch) | |
tree | caa667300113f43fd5d4818307bd55daf9778830 /usr.sbin/hostapd/parse.y | |
parent | d8bc1d67f3da8eb65175402c6507f96b8c94fada (diff) |
unbreak the symset function
Diffstat (limited to 'usr.sbin/hostapd/parse.y')
-rw-r--r-- | usr.sbin/hostapd/parse.y | 5 |
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); |