diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-11-16 13:16:13 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-11-16 13:16:13 +0000 |
commit | 70750624e73168de0aec2f0e76fad587c4e932e5 (patch) | |
tree | f35d93faeccaf016a9275c1fa9bab7e91b0d4346 | |
parent | 9ec2301bfd4ed4e343daaee1664b4c12b384e0fc (diff) | |
download | rspamd-70750624e73168de0aec2f0e76fad587c4e932e5.tar.gz rspamd-70750624e73168de0aec2f0e76fad587c4e932e5.zip |
[Minor] Fix format string to avoid crash on 32bit systems with weird off_t
Issue: #3142
-rw-r--r-- | src/libutil/map.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libutil/map.c b/src/libutil/map.c index 6fe2a80ca..e5aae11ea 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); |