aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/irda/packet-ircomm.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/plugins/irda/packet-ircomm.c b/plugins/irda/packet-ircomm.c
index df5d017c01..e3a8b16c3a 100644
--- a/plugins/irda/packet-ircomm.c
+++ b/plugins/irda/packet-ircomm.c
@@ -275,7 +275,10 @@ static gboolean dissect_ircomm_parameters(tvbuff_t* tvb, guint offset, packet_in
g_strlcat(buf, ")", 256);
- proto_item_append_text(ti, "%s", buf+2);
+ if (strlen(buf) > 2)
+ proto_item_append_text(ti, "%s", buf+2);
+ else
+ proto_item_append_text(ti, "unknown)");
break;
@@ -290,7 +293,10 @@ static gboolean dissect_ircomm_parameters(tvbuff_t* tvb, guint offset, packet_in
g_strlcat(buf, ")", 256);
- proto_item_append_text(ti, "%s", buf+2);
+ if (strlen(buf) > 2)
+ proto_item_append_text(ti, "%s", buf+2);
+ else
+ proto_item_append_text(ti, "unknown)");
break;