diff options
| author | B. Watson <urchlay@slackware.uk> | 2025-03-04 04:23:15 -0500 | 
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2025-03-04 04:23:15 -0500 | 
| commit | 1dc44316663887c7f4b29a8ca8f99508605cd607 (patch) | |
| tree | 8509ef1b927e42ecac22df6654e39955348cbe4e | |
| parent | 51245d31bd6b9015d1a54797a668dbdb810eaef3 (diff) | |
| download | bw-atari8-tools-1dc44316663887c7f4b29a8ca8f99508605cd607.tar.gz | |
listamsb: tell user where unexpected EOF happened.
| -rw-r--r-- | listamsb.c | 3 | 
1 files changed, 2 insertions, 1 deletions
| @@ -186,7 +186,8 @@ unsigned char read_byte(void) {  	c = fgetc(infile); -	if(c < 0) die("unexpected EOF, file truncated?"); +	if(c < 0) die("unexpected EOF in %s (byte %d), file truncated?", +			(header_read ? "program" : "header"), bytes_read);  	bytes_read++;  	return (unsigned char)c; | 
