commit 9267f6d0af4f2e015892531ae37f878778cf7ef8 from: Christian Weisgerber via: Thomas Adam date: Mon Jul 04 16:05:23 2022 UTC fix potential type mismatch between format specifier and argument Cast printf argument of type time_t to long long to match the %lld format specifier on platforms where this might not be the case. commit - 3e9e6ccaa178232c558ab88b92793cc2d16f865d commit + 9267f6d0af4f2e015892531ae37f878778cf7ef8 blob - 0be7b40c436b25c52c79c9243bc2f90dc70d9d21 blob + e07362c7af27db964be949901f0ee11c745c0f12 --- lib/sigs.c +++ lib/sigs.c @@ -202,7 +202,7 @@ got_tag_write_signed_data(BUF *buf, struct got_tag_obj got_date_format_gmtoff(gmtoff, sizeof(gmtoff), got_object_tag_get_tagger_gmtoff(tag)); if (asprintf(&tagger, "%s %lld %s", got_object_tag_get_tagger(tag), - got_object_tag_get_tagger_time(tag), gmtoff) == -1) { + (long long)got_object_tag_get_tagger_time(tag), gmtoff) == -1) { err = got_error_from_errno("asprintf"); goto done; }