diff options
| author | Tim Kientzle <kientzle@FreeBSD.org> | 2008-11-05 06:40:53 +0000 |
|---|---|---|
| committer | Tim Kientzle <kientzle@FreeBSD.org> | 2008-11-05 06:40:53 +0000 |
| commit | 025b20f6e5f702141ed99fab935e69c05b22bdd5 (patch) | |
| tree | 1f9d4d305727510f73d227da56fc49c7f428b41d /usr.bin | |
| parent | f4e24c4e7a85244bcc1bc3009b03938f6893b0ae (diff) | |
Notes
Diffstat (limited to 'usr.bin')
| -rw-r--r-- | usr.bin/tar/test/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/tar/test/main.c b/usr.bin/tar/test/main.c index b4e6e61e3264..3bfe6aac1f2d 100644 --- a/usr.bin/tar/test/main.c +++ b/usr.bin/tar/test/main.c @@ -494,7 +494,7 @@ test_assert_empty_file(const char *f1fmt, ...) if (fd < 0) { fprintf(stderr, " Unable to open %s\n", f1); } else { - s = (sizeof(buff) < (size_t)st.st_size) ? + s = ((off_t)sizeof(buff) < st.st_size) ? (ssize_t)sizeof(buff) : (ssize_t)st.st_size; s = read(fd, buff, s); hexdump(buff, NULL, s, 0); |
