diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2016-06-13 10:00:28 +0200 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2016-06-13 08:02:04 +0000 |
commit | 8ec8f6b8787dad6b627d8d1b2134d8092f9303c6 (patch) | |
tree | a76b10718d3d1cb7cc82b4ef8d935ac6ba9c250e /ui/text_import.c | |
parent | 4e55a28814e5203d987b58cf3bb16d8f747bae7c (diff) | |
download | wireshark-8ec8f6b8787dad6b627d8d1b2134d8092f9303c6.tar.gz |
Qt: Multi line import from hex dump without offsets
Fix importing hex dump without offsets with multiple lines.
Change-Id: I7a7339e375b3125688f5b5d29f493704c7b9944a
Reviewed-on: https://code.wireshark.org/review/15868
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'ui/text_import.c')
-rw-r--r-- | ui/text_import.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/text_import.c b/ui/text_import.c index 67a8b33980..93db8a2f93 100644 --- a/ui/text_import.c +++ b/ui/text_import.c @@ -840,6 +840,12 @@ parse_token (token_t token, char *str) } else state = READ_OFFSET; break; + case T_BYTE: + if (offset_base == 0) { + write_byte(str); + state = READ_BYTE; + } + break; default: break; } |