Use "format_text()" on strings fetched from packets.
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 17 Mar 2005 19:44:45 +0000 (19:44 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 17 Mar 2005 19:44:45 +0000 (19:44 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13794 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-ansi_a.c

index 5b9c72a84af643748e786df7a9c0279949554024..9e7c365bb32d08323cad3734f51b8554b27091ca 100644 (file)
 #include <stdlib.h>
 #include <string.h>
 
-#include "epan/packet.h"
+#include <epan/packet.h>
 #include <epan/prefs.h>
 #include <epan/tap.h>
+#include <epan/strutil.h>
 
 #include "packet-bssap.h"
 #include "packet-ansi_a.h"
@@ -2771,7 +2772,7 @@ elem_clg_party_ascii_num(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint
        tvb, curr_offset, len - (curr_offset - offset),
        poctets,
        "Digits: %s",
-       poctets);
+       format_text(poctets, len - (curr_offset - offset)));
 
     curr_offset += len - (curr_offset - offset);
 
@@ -5311,7 +5312,7 @@ elem_cld_party_ascii_num(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint
        tvb, curr_offset, len - (curr_offset - offset),
        poctets,
        "Digits: %s",
-       poctets);
+       format_text(poctets, len - (curr_offset - offset)));
 
     curr_offset += len - (curr_offset - offset);