--- a/src/server/webdav/webdav.c Thu Jun 20 13:27:07 2013 +0200 +++ b/src/server/webdav/webdav.c Thu Jun 20 14:07:46 2013 +0200 @@ -572,7 +572,7 @@ if(!S_ISDIR(st.st_mode)) { prop.name = "getcontentlength"; char buf[32]; - size_t n = snprintf(buf, 32, "%d", st.st_size); + size_t n = snprintf(buf, 32, "%lld", st.st_size); dav_propfind_add_str_prop(rq, &prop, buf, n); } @@ -600,7 +600,7 @@ } } else if(!strcmp(s, "getcontentlength") && !S_ISDIR(st.st_mode)) { char buf[32]; - size_t n = snprintf(buf, 32, "%d", st.st_size); + size_t n = snprintf(buf, 32, "%lld", 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);