aboutsummaryrefslogtreecommitdiffstats
path: root/epan/osi-utils.c
diff options
context:
space:
mode:
authorsahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>2005-08-17 09:36:20 +0000
committersahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>2005-08-17 09:36:20 +0000
commit72b425a223941e01f423258bbd94cc7e86016fda (patch)
treebc53492d18a339c583153f54957c4d9c736ae3be /epan/osi-utils.c
parent6a2428bb5978d43b856b3934e3c3899b0b1e8700 (diff)
replace some more silly rotating buffers with ep_alloc() calls
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15386 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/osi-utils.c')
-rw-r--r--epan/osi-utils.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/epan/osi-utils.c b/epan/osi-utils.c
index 1f1c3f339f..95283d6bd0 100644
--- a/epan/osi-utils.c
+++ b/epan/osi-utils.c
@@ -34,14 +34,14 @@
#include <glib.h>
#include "osi-utils.h"
+#include "emem.h"
gchar *
print_nsap_net( const guint8 *ad, int length )
{
- static gchar str[MAX_NSAP_LEN * 3 + 50]; /* reserve space for nice layout */
gchar *cur;
- cur = str;
+ cur = ep_alloc(MAX_NSAP_LEN * 3 + 50);
print_nsap_net_buf( ad, length, cur );
return( cur );
}
@@ -77,10 +77,9 @@ print_nsap_net_buf( const guint8 *ad, int length, gchar *buf )
gchar *
print_system_id( const guint8 *ad, int length )
{
- static gchar str[MAX_SYSTEMID_LEN * 3 + 5]; /* Don't trust exact matching */
gchar *cur;
- cur = str;
+ cur = ep_alloc(MAX_SYSTEMID_LEN * 3 + 5);
print_system_id_buf(ad, length, cur );
return( cur );
}
@@ -132,10 +131,9 @@ print_system_id_buf( const guint8 *ad, int length, gchar *buf )
gchar *
print_area(const guint8 *ad, int length)
{
- static gchar str[MAX_AREA_LEN * 3 + 20]; /* reserve space for nice layout */
gchar *cur;
- cur = str;
+ cur = ep_alloc(MAX_AREA_LEN * 3 + 20);
print_area_buf( ad, length, cur );
return cur;
}