From: Tim Kientzle Date: Wed, 19 Jun 2024 23:18:35 +0000 (-0700) Subject: Fix potential overflow warning in cpio test_option_t (#2250) X-Git-Tag: v3.7.5~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3fdf9bf80fd4e9473052ef68a9ce7ccebfc5472c;p=thirdparty%2Flibarchive.git Fix potential overflow warning in cpio test_option_t (#2250) Fixes an error from #2237. --- diff --git a/cpio/test/test_option_t.c b/cpio/test/test_option_t.c index 4130b7f91..46668ec27 100644 --- a/cpio/test/test_option_t.c +++ b/cpio/test/test_option_t.c @@ -33,7 +33,7 @@ DEFINE_TEST(test_option_t) char *p; int r; time_t mtime; - char date[32]; + char date[48]; char date2[32]; struct tm *tmptr; #if defined(HAVE_LOCALTIME_R) || defined(HAVE_LOCALTIME_S)