From be2f7b67b9cbedab02f7c8a8011e03164c9715f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lesimple?= Date: Fri, 4 Sep 2020 23:35:42 +0200 Subject: [PATCH] fix: lift the limitation on the number of arguments --- src/dvdisaster.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/dvdisaster.c b/src/dvdisaster.c index 9b1cb83..50d89e2 100644 --- a/src/dvdisaster.c +++ b/src/dvdisaster.c @@ -68,7 +68,9 @@ typedef enum MODE_TRUNCATE, MODE_ZERO_UNREADABLE, - MODIFIER_ADAPTIVE_READ, + /* don't use the ascii range 32-127 so that we + avoid collision with the single-char options */ + MODIFIER_ADAPTIVE_READ = 128, MODIFIER_AUTO_SUFFIX, MODIFIER_CACHE_SIZE, MODIFIER_CLV_SPEED, /* unused */ @@ -195,11 +197,6 @@ int main(int argc, char *argv[]) if(sizeof(EccHeader) != 4096) Stop("sizeof(EccHeader) is %d, but must be 4096.\n", sizeof(EccHeader)); - /*** If we have too much command line options fail here */ - - if(MODIFIER_VERSION >= 'a') - Stop("Too many command line options\n"); - /*** CPU type detection. Must be done before parsing the options as some may be CPU-related. */