summaryrefslogtreecommitdiff
path: root/methods
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2012-04-17 23:47:35 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2012-04-17 23:47:35 +0200
commitbce0e0ff327341da3ad54d7ea2bb6d82b3f96879 (patch)
tree49db3bf5ac3a20d9d1452a1e0e5ffbcf7a7bb4e6 /methods
parentc204d1482e085f5453c0d99ee5a9a8e99ca90e38 (diff)
newer gcc versions seems to have no problem with that, but while working
with g++-4.1 it complains about this so lets be extra clear
Diffstat (limited to 'methods')
-rw-r--r--methods/http.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/methods/http.cc b/methods/http.cc
index c62ca71d3..b450b6ffc 100644
--- a/methods/http.cc
+++ b/methods/http.cc
@@ -602,7 +602,7 @@ bool ServerState::HeaderLine(string Line)
return true;
Size = strtoull(Val.c_str(), NULL, 10);
- if (Size == ULLONG_MAX)
+ if (Size >= std::numeric_limits<unsigned long long>::max())
return _error->Errno("HeaderLine", _("The HTTP server sent an invalid Content-Length header"));
return true;
}