]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix format string to avoid crash on 32bit systems with weird off_t
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 16 Nov 2019 13:16:13 +0000 (13:16 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 16 Nov 2019 13:16:13 +0000 (13:16 +0000)
Issue: #3142

src/libutil/map.c

index 6fe2a80cae29eb94df4f3feb185a71fe3fc8da3e..e5aae11ea28dd877a45e13b8d64cc07c622ed70b 100644 (file)
@@ -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);