summaryrefslogtreecommitdiffstats
path: root/commands/memcmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'commands/memcmp.c')
-rw-r--r--commands/memcmp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/commands/memcmp.c b/commands/memcmp.c
index d1c4f52..76fbe07 100644
--- a/commands/memcmp.c
+++ b/commands/memcmp.c
@@ -42,7 +42,8 @@ static int do_memcmp(int argc, char *argv[])
int ret = 1;
int offset = 0;
- if (memcpy_parse_options(argc, argv, &sourcefd, &destfd, &count) < 0)
+ if (memcpy_parse_options(argc, argv, &sourcefd, &destfd, &count,
+ O_RWSIZE_1, O_RDONLY) < 0)
return 1;
buf = xmalloc(RW_BUF_SIZE + RW_BUF_SIZE);