diff options
-rw-r--r-- | nandwrite.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nandwrite.c b/nandwrite.c index 5373a89..2e45136 100644 --- a/nandwrite.c +++ b/nandwrite.c @@ -218,6 +218,10 @@ static void process_options(int argc, char * const argv[]) exit(EXIT_FAILURE); } + if (blockalign < 0) + errmsg_die("Can't specify negative blockalign with option -b:" + " %d", blockalign); + argc -= optind; argv += optind; |