fixed possibly wrong raw byte string after simply pressing the enter key

This commit is contained in:
Volker Ruppert 2013-02-02 16:52:54 +00:00
parent 0fbd1b3eff
commit 2d552af7a2

View File

@ -996,7 +996,8 @@ int bx_param_string_c::text_ask(FILE *fpin, FILE *fpout)
int opts = options;
char buffer2[1024];
strcpy(buffer2, buffer);
if (status == 1 && opts & RAW_BYTES) {
if (opts & RAW_BYTES) {
if (status == 0) return 0;
// copy raw hex into buffer
status = parse_raw_bytes(buffer, buffer2, maxsize, separator);
if (status < 0) {