talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit dadab31639eb4a69dc5dd0721b67e09d8723ec56
parent 31fce04fdc2ee85db11a923f1c5760fbc780a70b
Author: Colin Leroy <colin@colino.net>
Date:   Fri, 28 Sep 2018 13:20:26 +0200

Fix Coverity warning (unsafe fscanf)

Diffstat:
Msrc/plugins/libravatar/libravatar_missing.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/libravatar/libravatar_missing.c b/src/plugins/libravatar/libravatar_missing.c @@ -54,7 +54,7 @@ GHashTable *missing_load_from_file(const gchar *filename) table = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free); - while ((r = fscanf(file, "%s %llu\n", md5sum, &seen)) != EOF) { + while ((r = fscanf(file, "%32s %llu\n", md5sum, &seen)) != EOF) { if (t - (time_t)seen <= LIBRAVATAR_MISSING_TIME) { time_t *value = g_malloc0(sizeof(time_t)); *value = (time_t)seen;