You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by wr...@apache.org on 2016/12/22 19:41:53 UTC

svn commit: r1775717 - /httpd/httpd/branches/2.2.x-merge-http-strict/server/protocol.c

Author: wrowe
Date: Thu Dec 22 19:41:53 2016
New Revision: 1775717

URL: http://svn.apache.org/viewvc?rev=1775717&view=rev
Log:
Backports: r1621419 (protocol.c only)
Submitted by: jailletc36
Fix sscanf format spotted by cppcheck 
(changes version major/minor types from signed to unsigned)

Modified:
    httpd/httpd/branches/2.2.x-merge-http-strict/server/protocol.c

Modified: httpd/httpd/branches/2.2.x-merge-http-strict/server/protocol.c
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x-merge-http-strict/server/protocol.c?rev=1775717&r1=1775716&r2=1775717&view=diff
==============================================================================
--- httpd/httpd/branches/2.2.x-merge-http-strict/server/protocol.c (original)
+++ httpd/httpd/branches/2.2.x-merge-http-strict/server/protocol.c Thu Dec 22 19:41:53 2016
@@ -560,7 +560,7 @@ static int read_request_line(request_rec
     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;