Fixes to minor Coverity errors:
75424 73422 72724 72702 72662
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user