diff options
Diffstat (limited to 'ui')
-rw-r--r-- | ui/text_import.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/text_import.c b/ui/text_import.c index 307b1e1fdc..1afa82d8d8 100644 --- a/ui/text_import.c +++ b/ui/text_import.c @@ -615,7 +615,8 @@ parse_preamble (void) i++; } packet_preamble_len -= i; - memmove(packet_preamble, packet_preamble+i, packet_preamble_len); + /* Also move the trailing '\0'. */ + memmove(packet_preamble, packet_preamble + i, packet_preamble_len + 1); } /* |