diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-05-09 16:30:05 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-05-09 16:30:05 +0000 |
commit | d077d3b7048b7b6139c3f0e7967b03c3699061ab (patch) | |
tree | 5cbf668c2ce1996d4f56a5ec8800ef92728dc447 /epan | |
parent | 72b76ec585891737438a002887b2e01e35d7dcb7 (diff) |
Null-terminate the hex-to-text-converted string.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25266 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-ipsec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/dissectors/packet-ipsec.c b/epan/dissectors/packet-ipsec.c index 7249953120..b8f2968321 100644 --- a/epan/dissectors/packet-ipsec.c +++ b/epan/dissectors/packet-ipsec.c @@ -1184,6 +1184,7 @@ compute_ascii_key(gchar **ascii_key, gchar *key) key_byte |= (guchar)hex_digit; (*ascii_key)[j] = key_byte; } + (*ascii_key)[j] = '\0'; } else @@ -1225,6 +1226,7 @@ compute_ascii_key(gchar **ascii_key, gchar *key) key_byte |= (guchar)hex_digit; (*ascii_key)[j] = key_byte; } + (*ascii_key)[j] = '\0'; } } |