]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Backports: r1621419 (protocol.c only)
authorWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 22 Dec 2016 19:41:53 +0000 (19:41 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 22 Dec 2016 19:41:53 +0000 (19:41 +0000)
Submitted by: jailletc36
Fix sscanf format spotted by cppcheck
(changes version major/minor types from signed to unsigned)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x-merge-http-strict@1775717 13f79535-47bb-0310-9956-ffa450edef68

server/protocol.c

index 93abb911d10bffbc224f4350d91b9f63aff55444..f49f38690c6edf6946075084171c6748f1cbeb66 100644 (file)
@@ -560,7 +560,7 @@ static int read_request_line(request_rec *r, apr_bucket_brigade *bb)
     const char *uri;
     const char *pro;
 
-    int major = 1, minor = 0;   /* Assume HTTP/1.0 if non-"HTTP" protocol */
+    unsigned int major = 1, minor = 0;   /* Assume HTTP/1.0 if non-"HTTP" protocol */
     char http[5];
     apr_size_t len;
     int num_blank_lines = 0;