diff options
| -rw-r--r-- | xexamine.c | 4 | 
1 files changed, 4 insertions, 0 deletions
| @@ -318,6 +318,10 @@ int main(int argc, char **argv) {  			case 's':  				if( (only_segment = get_address(SELF, optarg)) < 0 )  					exit(1); +				if(!only_segment) { +					fprintf(stderr, SELF ": 0 is not a valid segment number (they start with 1).\n"); +					exit(1); +				}  				break;  			case 'v':  				xex_verbose = 1; | 
