aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/cgi.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-12-16 20:06:58 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-12-16 20:06:58 +0000
commit7bbafa515126a7abed8e0bf8c41e79bcc771e867 (patch)
treeb4dfd735fe28dd67fb8f170cf5cacd0f60014fd0 /cgi.c
parent9511215d215cb11a30fd4c57c4a7cf7e84294527 (diff)
downloadmandoc-7bbafa515126a7abed8e0bf8c41e79bcc771e867.tar.gz
mandoc-7bbafa515126a7abed8e0bf8c41e79bcc771e867.tar.zst
mandoc-7bbafa515126a7abed8e0bf8c41e79bcc771e867.zip
Two lint fixes.
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;