Fix potential overflow warning in cpio test_option_t (#2250)

Fixes an error from #2237.
This commit is contained in:
Tim Kientzle 2024-06-19 16:18:35 -07:00 committed by GitHub
parent 13c710a825
commit 3fdf9bf80f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)