From: Ngie Cooper Date: Tue, 13 Dec 2016 07:16:25 +0000 (-0800) Subject: Clarify that calling memset with '0' is intentional by casting the X-Git-Tag: v3.3.0~37^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01c98d5817debed601e6e0da39a03e7dc2e22559;p=thirdparty%2Flibarchive.git Clarify that calling memset with '0' is intentional by casting the value to (int) Reported by: Coverity CID: 1017786 --- diff --git a/libarchive/archive_write_set_format_iso9660.c b/libarchive/archive_write_set_format_iso9660.c index 1d1f04e00..ecc9f3263 100644 --- a/libarchive/archive_write_set_format_iso9660.c +++ b/libarchive/archive_write_set_format_iso9660.c @@ -2553,7 +2553,7 @@ set_date_time(unsigned char *p, time_t t) static void set_date_time_null(unsigned char *p) { - memset(p, '0', 16); + memset(p, (int)'0', 16); p[16] = 0; }