summaryrefslogtreecommitdiffstats
path: root/seqreader.c
diff options
context:
space:
mode:
Diffstat (limited to 'seqreader.c')
-rw-r--r--seqreader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/seqreader.c b/seqreader.c
index e0afe67..68bcdca 100644
--- a/seqreader.c
+++ b/seqreader.c
@@ -37,7 +37,7 @@ int main(int argc, char *argv[]) {
exit(0);
}
- if (!strstr(argv[0], "/dev/")) {
+ if (strstr(argv[1], "/dev/")) {
int fd = open(argv[1], O_RDONLY|O_NOATIME|O_LARGEFILE/*|O_DIRECT*/, 0);
if (fd < 0) {
printf("Unable to open device %s\n", argv[1]);