]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Fix signedness formatting check in mod_dav code.
authorStefan Eissing <icing@apache.org>
Thu, 16 Feb 2023 10:09:02 +0000 (10:09 +0000)
committerStefan Eissing <icing@apache.org>
Thu, 16 Feb 2023 10:09:02 +0000 (10:09 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1907695 13f79535-47bb-0310-9956-ffa450edef68

modules/dav/main/ms_wdv.c

index 62f14382a9b6586130e81699eaa490eb826e32e0..adbfb148d93717bfab13ce085d7ab6bf79de59c4 100644 (file)
@@ -552,8 +552,8 @@ static dav_error *mswdv_combined_propfind(request_rec *r)
 
     bb = apr_brigade_create(r->pool,r->output_filters->c->bucket_alloc);
 
-    apr_brigade_printf(bb, NULL, NULL,
-                       "%016" APR_UINT64_T_HEX_FMT, length);
+    apr_brigade_printf(bb, NULL, NULL, "%016" APR_UINT64_T_HEX_FMT,
+                       (apr_uint64_t)length);
 
     APR_BRIGADE_CONCAT(bb, bbsub);
 
@@ -569,8 +569,8 @@ static dav_error *mswdv_combined_propfind(request_rec *r)
         return dav_new_error(r->pool, HTTP_BAD_REQUEST, 0, 0,
                              "Not a plain file");
 
-    apr_brigade_printf(bb, NULL, NULL,
-                       "%016" APR_UINT64_T_HEX_FMT, rr->finfo.size);
+    apr_brigade_printf(bb, NULL, NULL, "%016" APR_UINT64_T_HEX_FMT,
+                       (apr_uint64_t)rr->finfo.size);
 
     ap_set_content_type(r, "multipart/MSDAVEXTPrefixEncoded");