diff options
| author | B. Watson <urchlay@slackware.uk> | 2024-04-25 16:21:44 -0400 | 
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2024-04-25 16:21:44 -0400 | 
| commit | 69786b846ff2e0afc8bbf5b699b7ead925d90129 (patch) | |
| tree | 81d2ad594e9041f0a9c75cd2b6781fdde69172e9 | |
| parent | 93d9b2657514a1c198234e610de9a6483ab9f74f (diff) | |
| download | bw-atari8-tools-69786b846ff2e0afc8bbf5b699b7ead925d90129.tar.gz | |
xexamine: don't accept -s 0.
| -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; | 
