From: Vsevolod Stakhov Date: Sat, 16 Nov 2019 13:16:13 +0000 (+0000) Subject: [Minor] Fix format string to avoid crash on 32bit systems with weird off_t X-Git-Tag: 2.2~26 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=70750624e73168de0aec2f0e76fad587c4e932e5;p=thirdparty%2Frspamd.git [Minor] Fix format string to avoid crash on 32bit systems with weird off_t Issue: #3142 --- diff --git a/src/libutil/map.c b/src/libutil/map.c index 6fe2a80cae..e5aae11ea2 100644 --- a/src/libutil/map.c +++ b/src/libutil/map.c @@ -1581,8 +1581,9 @@ rspamd_map_read_http_cached_file (struct rspamd_map *map, msg_info_map ("read cached data for %s from %s, %uz bytes; next check at: %s;" " last modified on: %s; etag: %V", - bk->uri, path, - st.st_size - header.data_off, + bk->uri, + path, + (size_t)(st.st_size - header.data_off), ncheck_buf, lm_buf, htdata->etag);