]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix potential overflow warning in cpio test_option_t (#2250)
authorTim Kientzle <kientzle@acm.org>
Wed, 19 Jun 2024 23:18:35 +0000 (16:18 -0700)
committerGitHub <noreply@github.com>
Wed, 19 Jun 2024 23:18:35 +0000 (16:18 -0700)
Fixes an error from #2237.

cpio/test/test_option_t.c

index 4130b7f9184b757573d82c838ec887201089247a..46668ec276b857f36396493dde81b7b19da5d796 100644 (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)