--- a/src/server/webdav/webdav.c Mon Sep 09 12:15:54 2013 +0200 +++ b/src/server/webdav/webdav.c Mon Oct 14 13:36:28 2013 +0200 @@ -590,7 +590,7 @@ if(!S_ISDIR(st.st_mode)) { prop.name = "getcontentlength"; char buf[32]; - size_t n = snprintf(buf, 32, "%lld", st.st_size); + size_t n = snprintf(buf, 32, "%jd", st.st_size); dav_propfind_add_str_prop(rq, &prop, buf, n); } @@ -618,7 +618,7 @@ } } else if(!strcmp(s, "getcontentlength") && !S_ISDIR(st.st_mode)) { char buf[32]; - size_t n = snprintf(buf, 32, "%lld", st.st_size); + size_t n = snprintf(buf, 32, "%jd", st.st_size); dav_propfind_add_str_prop(rq, prop, buf, n); } else if(!strcmp(s, "getlastmodified")) { sstr_t s = date_format_http(st.st_mtime, rq->sn->pool);