From 3fdf9bf80fd4e9473052ef68a9ce7ccebfc5472c Mon Sep 17 00:00:00 2001 From: Tim Kientzle Date: Wed, 19 Jun 2024 16:18:35 -0700 Subject: [PATCH] Fix potential overflow warning in cpio test_option_t (#2250) Fixes an error from #2237. --- cpio/test/test_option_t.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.47.2