summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcperciva <cperciva@FreeBSD.org>2005-08-09 08:33:27 +0000
committercperciva <cperciva@FreeBSD.org>2005-08-09 08:33:27 +0000
commit32083455b6d482f2b16b05f10c5c83e6f1dabfa1 (patch)
treeb71f3cd976a2eab50fdf6656d6e24da00f8a7c32
parentb7fa3f9b224a934beee4bb790f287c8d0c9d1ca8 (diff)
downloadFreeBSD-src-32083455b6d482f2b16b05f10c5c83e6f1dabfa1.zip
FreeBSD-src-32083455b6d482f2b16b05f10c5c83e6f1dabfa1.tar.gz
Replace INT_MAX with OFF_MAX. I used INT_MAX originally (in ports)
because OFF_MAX wasn't defined on FreeBSD 4.x.
-rw-r--r--usr.sbin/portsnap/phttpget/phttpget.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/portsnap/phttpget/phttpget.c b/usr.sbin/portsnap/phttpget/phttpget.c
index a68f60f..584ce51 100644
--- a/usr.sbin/portsnap/phttpget/phttpget.c
+++ b/usr.sbin/portsnap/phttpget/phttpget.c
@@ -403,7 +403,7 @@ main(int argc, char *argv[])
/* Compute the length */
while (isdigit(*hln)) {
- if (contentlength > INT_MAX / 10) {
+ if (contentlength >= OFF_MAX / 10) {
/* Nasty people... */
goto conndied;
}
@@ -488,7 +488,7 @@ main(int argc, char *argv[])
clen = 0;
while (isxdigit(*hln)) {
- if (clen > INT_MAX / 16) {
+ if (clen >= OFF_MAX / 16) {
/* Nasty people... */
goto conndied;
}
@@ -528,7 +528,7 @@ main(int argc, char *argv[])
* Read everything until the server closes the
* socket.
*/
- error = copybytes(sd, fd, INT_MAX, resbuf,
+ error = copybytes(sd, fd, OFF_MAX, resbuf,
&resbuflen, &resbufpos);
if (error == -1)
goto conndied;
OpenPOWER on IntegriCloud