summaryrefslogtreecommitdiffstats
path: root/modules/dav/main/ms_wdv.c
diff options
context:
space:
mode:
authorStefan Eissing <icing@apache.org>2023-02-16 11:09:02 +0100
committerStefan Eissing <icing@apache.org>2023-02-16 11:09:02 +0100
commitb83898646120c34cc4f76c1dfe325ea36a7ebab7 (patch)
treefb4c970d5f45a095913f6819103ad6e7847c57d5 /modules/dav/main/ms_wdv.c
parentFix warning for NULL pointer (diff)
downloadapache2-b83898646120c34cc4f76c1dfe325ea36a7ebab7.tar.xz
apache2-b83898646120c34cc4f76c1dfe325ea36a7ebab7.zip
Fix signedness formatting check in mod_dav code.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1907695 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--modules/dav/main/ms_wdv.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/dav/main/ms_wdv.c b/modules/dav/main/ms_wdv.c
index 62f14382a9..adbfb148d9 100644
--- a/modules/dav/main/ms_wdv.c
+++ b/modules/dav/main/ms_wdv.c
@@ -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");