diff options
-rw-r--r-- | epan/proto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/proto.c b/epan/proto.c index a0053a5d4c..95298bfb80 100644 --- a/epan/proto.c +++ b/epan/proto.c @@ -8007,7 +8007,7 @@ label_mark_truncated(char *label_str, gsize name_pos) there's no need to use g_utf8_find_prev_char(), the search will always succeed since we copied trunc_str into the buffer */ - last_char = g_utf8_prev_char(&label_str[ITEM_LABEL_LENGTH]); + last_char = g_utf8_prev_char(&label_str[ITEM_LABEL_LENGTH - 1]); *last_char = '\0'; } else if (name_pos < ITEM_LABEL_LENGTH) |