diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2012-06-15 03:23:13 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2012-06-15 03:23:13 +0200 |
commit | 2f06dea18427f27443ca71f183b33dc4d071608b (patch) | |
tree | 4e6dd7de81f2c1bda8b157e37f07379106007f62 | |
parent | Whoops. (diff) | |
download | JsonScgiQt-2f06dea18427f27443ca71f183b33dc4d071608b.tar.xz JsonScgiQt-2f06dea18427f27443ca71f183b33dc4d071608b.zip |
Cast to uint instead of int to avoid negative.
-rw-r--r-- | lib/JsonScgiPeer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/JsonScgiPeer.cpp b/lib/JsonScgiPeer.cpp index d690c2e..7b984f8 100644 --- a/lib/JsonScgiPeer.cpp +++ b/lib/JsonScgiPeer.cpp @@ -88,7 +88,7 @@ void JsonScgiPeer::parseScgiHeader() i += strlen(value) + 1; if (!strcmp(key, "CONTENT_LENGTH")) - m_jsonLength = QString(value).toInt(); + m_jsonLength = QString(value).toUInt(); else if (!strcmp(key, "REQUEST_URI")) m_url.setUrl(value); else if (!strcmp(key, "HTTP_COOKIE")) { |