summaryrefslogtreecommitdiff
path: root/src/feeds.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2022-01-26 13:55:24 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2022-01-26 13:55:24 +0200
commitfa3a2c297b89abe91a25dafed98c3c635613b2dd (patch)
tree695d6b5937fea93ab1c62aede859572e6cf32ec2 /src/feeds.c
parent22bcddc9a24381a1393cf732f6f8e1c31a84742f (diff)
Feeds: Potential fix for a crash on 32-bit Haiku OS
Ensure the argument type matches the printf formatting.
Diffstat (limited to 'src/feeds.c')
-rw-r--r--src/feeds.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/feeds.c b/src/feeds.c
index a8cbf47a..7b679dc1 100644
--- a/src/feeds.c
+++ b/src/feeds.c
@@ -275,7 +275,8 @@ static void save_Feeds_(iFeeds *d) {
275 if (open_File(f, write_FileMode | text_FileMode)) { 275 if (open_File(f, write_FileMode | text_FileMode)) {
276 lock_Mutex(d->mtx); 276 lock_Mutex(d->mtx);
277 iString *str = new_String(); 277 iString *str = new_String();
278 format_String(str, "%llu\n# Feeds\n", integralSeconds_Time(&d->lastRefreshedAt)); 278 format_String(str, "%llu\n# Feeds\n", (unsigned long long)
279 integralSeconds_Time(&d->lastRefreshedAt));
279 write_File(f, utf8_String(str)); 280 write_File(f, utf8_String(str));
280 /* Index of feeds for IDs. */ { 281 /* Index of feeds for IDs. */ {
281 iConstForEach(PtrArray, i, listSubscriptions_()) { 282 iConstForEach(PtrArray, i, listSubscriptions_()) {
@@ -296,8 +297,8 @@ static void save_Feeds_(iFeeds *d) {
296 } 297 }
297 format_String(str, "%x\n%llu\n%llu\n%s\n%s\n", 298 format_String(str, "%x\n%llu\n%llu\n%s\n%s\n",
298 entry->bookmarkId, 299 entry->bookmarkId,
299 integralSeconds_Time(&entry->posted), 300 (unsigned long long) integralSeconds_Time(&entry->posted),
300 integralSeconds_Time(&entry->discovered), 301 (unsigned long long) integralSeconds_Time(&entry->discovered),
301 cstr_String(&entry->url), 302 cstr_String(&entry->url),
302 cstr_String(&entry->title)); 303 cstr_String(&entry->title));
303 write_File(f, utf8_String(str)); 304 write_File(f, utf8_String(str));