aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/cgi.c
diff options
context:
space:
mode:
Diffstat (limited to 'cgi.c')
-rw-r--r--cgi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cgi.c b/cgi.c
index 0eb7d059..7d32a626 100644
--- a/cgi.c
+++ b/cgi.c
@@ -1,4 +1,4 @@
-/* $Id: cgi.c,v 1.37 2011/12/16 20:05:31 kristaps Exp $ */
+/* $Id: cgi.c,v 1.38 2011/12/16 20:06:58 kristaps Exp $ */
/*
* Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -134,7 +134,7 @@ atou(const char *buf, unsigned *v)
return(0);
if ((errno == ERANGE && (lval == LONG_MAX ||
lval == LONG_MIN)) ||
- (lval > UINT_MAX || lval < 0))
+ (lval > INT_MAX || lval < 0))
return(0);
*v = (unsigned int)lval;