diff options
-rw-r--r-- | icemulti/icemulti.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/icemulti/icemulti.cc b/icemulti/icemulti.cc index 60b6fea..da90da3 100644 --- a/icemulti/icemulti.cc +++ b/icemulti/icemulti.cc @@ -241,6 +241,8 @@ int main(int argc, char **argv) align_bits = strtol(optarg, &endptr, 0); if (*endptr != '\0') error("`%s' is not a valid number\n", optarg); + if (align_bits < 0) + error("argument to `-%c' must be non-negative\n", c); break; case 'o': outfile_name = optarg; |