Fixes to minor Coverity errors:

75424
73422
72724
72702
72662
This commit is contained in:
Markus Makela
2014-11-07 11:12:26 +02:00
parent e1af60ac71
commit 474f018cee
4 changed files with 13 additions and 5 deletions

View File

@ -45,8 +45,9 @@ int main(int argc, char** argv)
}
block_size = atoi(argv[3]);
if(block_size < 1){
fprintf(stderr,"Message size too small, must be at least 1 byte long.");
if(block_size < 1 || block_size > 1024){
fprintf(stderr,"Message size too small or large, must be at least 1 byte long and must not exceed 1024 bytes.");
return 1;
}