Control window must be a positive value.

This commit is contained in:
ckolivas 2017-12-18 09:08:27 +11:00
parent 1a30639d7c
commit 4d8e60a912

2
main.c
View file

@ -501,6 +501,8 @@ int main(int argc, char *argv[])
break;
case 'w':
control->window = atol(optarg);
if (control->window < 1)
failure("Window must be positive\n");
break;
case 'z':
if (control->flags & FLAG_NOT_LZMA)