aboutsummaryrefslogtreecommitdiffstats
path: root/packet-gtp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-09-20 08:56:28 +0000
committerGuy Harris <guy@alum.mit.edu>2003-09-20 08:56:28 +0000
commit45a0dab92b60fc78756bfcc907bf9828a70d28fd (patch)
treec6a1232467a7879f240366db5e595ecca57f56c9 /packet-gtp.c
parentd532ea7b172d313760ffe8140dcaa8bcf3a60c52 (diff)
You can't safely return from a routine a pointer to an automatic
variable. svn path=/trunk/; revision=8504
Diffstat (limited to 'packet-gtp.c')
-rw-r--r--packet-gtp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/packet-gtp.c b/packet-gtp.c
index 6d43b39098..4dba637bce 100644
--- a/packet-gtp.c
+++ b/packet-gtp.c
@@ -4,7 +4,7 @@
* Copyright 2001, Michal Melerowicz <michal.melerowicz@nokia.com>
* Nicolas Balkota <balkota@mac.com>
*
- * $Id: packet-gtp.c,v 1.61 2003/09/18 21:42:45 gerald Exp $
+ * $Id: packet-gtp.c,v 1.62 2003/09/20 08:56:28 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -1667,7 +1667,7 @@ col_append_str_gtp(column_info *cinfo, gint el, gchar *proto_name) {
static gchar *
id_to_str(const guint8 *ad) {
- gchar str[17] = " ";
+ static gchar str[17] = " ";
guint8 bits8to5, bits4to1;
int i;
static const gchar hex_digits[10] = "0123456789";
@@ -1686,7 +1686,7 @@ id_to_str(const guint8 *ad) {
static gchar *
imsi_to_str(const guint8 *ad) {
- gchar str[17] = " ";
+ static gchar str[17] = " ";
int i, j = 0;
for (i = 0; i < 8; i++) {
@@ -1701,7 +1701,7 @@ imsi_to_str(const guint8 *ad) {
static gchar *
msisdn_to_str(const guint8 *ad, int len) {
- gchar str[18] = "+ ";
+ static gchar str[18] = "+ ";
gchar *p;
guint8 bits8to5, bits4to1;
int i;