Skip to content

Commit 3fdf9bf

Browse files
authored
Fix potential overflow warning in cpio test_option_t (libarchive#2250)
Fixes an error from libarchive#2237.
1 parent 13c710a commit 3fdf9bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: cpio/test/test_option_t.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ DEFINE_TEST(test_option_t)
3333
char *p;
3434
int r;
3535
time_t mtime;
36-
char date[32];
36+
char date[48];
3737
char date2[32];
3838
struct tm *tmptr;
3939
#if defined(HAVE_LOCALTIME_R) || defined(HAVE_LOCALTIME_S)

0 commit comments

Comments
 (0)