diff options
-rw-r--r-- | epan/dissectors/packet-iso8583.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-iso8583.c b/epan/dissectors/packet-iso8583.c index dd44607635..a689cf1498 100644 --- a/epan/dissectors/packet-iso8583.c +++ b/epan/dissectors/packet-iso8583.c @@ -560,7 +560,7 @@ static gchar* bin2hex(const guint8 *bin, enum bin2hex_enum type, guint32 len) if(size % 2) /* odd */ { ch = *str & 0x0f; - *buff = NIBBLE_2_ASCHEX(ch); + *buff++ = NIBBLE_2_ASCHEX(ch); str++; size--; } @@ -570,9 +570,9 @@ static gchar* bin2hex(const guint8 *bin, enum bin2hex_enum type, guint32 len) while(size-- > 0) { ch = (*str >> 4) & 0x0f; - *buff = NIBBLE_2_ASCHEX(ch); + *buff++ = NIBBLE_2_ASCHEX(ch); ch = *str & 0x0f; - *buff = NIBBLE_2_ASCHEX(ch); + *buff++ = NIBBLE_2_ASCHEX(ch); str++; } *buff = '\0'; |