summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2005-09-30 14:57:31 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2005-09-30 14:57:31 +0000
commit79d7160fba64e3e1bce8ecf4f32af3dae2c2d7cf (patch)
tree2cd6a270e84c36656c546b3b26b2d8d6a3729ab5 /usr.sbin
parent646cc0616360b99337d6585a8b76faf35f90a458 (diff)
fix;5C the 'number' type, use a maximal value of LONG_MAX instead of 16.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/hostapd/parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/hostapd/parse.y b/usr.sbin/hostapd/parse.y
index 50552e0cf86..f1a275856d8 100644
--- a/usr.sbin/hostapd/parse.y
+++ b/usr.sbin/hostapd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.9 2005/09/29 23:55:40 reyk Exp $ */
+/* $OpenBSD: parse.y,v 1.10 2005/09/30 14:57:30 reyk Exp $ */
/*
* Copyright (c) 2004, 2005 Reyk Floeter <reyk@vantronix.net>
@@ -811,7 +811,7 @@ randaddr : RANDOM
number : STRING
{
- $$ = strtonum($1, 0, 1 << sizeof(long), NULL);
+ $$ = strtonum($1, 0, LONG_MAX, NULL);
free($1);
}
;