diff options
Diffstat (limited to 'usr.bin/cpio/test/main.c')
-rw-r--r-- | usr.bin/cpio/test/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cpio/test/main.c b/usr.bin/cpio/test/main.c index 133f4a9..8318620 100644 --- a/usr.bin/cpio/test/main.c +++ b/usr.bin/cpio/test/main.c @@ -598,8 +598,8 @@ test_assert_file_contents(const void *buff, int s, const char *fpattern, ...) va_end(ap); fd = open(f, O_RDONLY); - contents = malloc(s * 2); - n = read(fd, contents, s * 2); + contents = malloc(s * 2 + 128); + n = read(fd, contents, s * 2 + 128); if (n == s && memcmp(buff, contents, s) == 0) { free(contents); return (1); |