httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r1775717 - /httpd/httpd/branches/2.2.x-merge-http-strict/server/protocol.c
Date Thu, 22 Dec 2016 19:41:53 GMT
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;



Mime
View raw message