diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-05-10 23:20:38 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-05-10 23:20:38 +0000 |
commit | ae88c45ef0e996600f277bb74261f42ced995b6c (patch) | |
tree | f18ae465f401e1d4668a4ffce5f6c6528af6f89f /packet-iapp.c | |
parent | 42c395b0e250aa833072dde090d22dd0e97f2564 (diff) |
From Joerg Mayer: make a pile of stuff not used outside one source file
static, and add a new "packet-data.h" to declare "proto_data".
Display escape sequences in octal in the IAPP dissector, as is now done
in the RADIUS dissector.
svn path=/trunk/; revision=5441
Diffstat (limited to 'packet-iapp.c')
-rw-r--r-- | packet-iapp.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/packet-iapp.c b/packet-iapp.c index 5052dc9c20..3b1796cc74 100644 --- a/packet-iapp.c +++ b/packet-iapp.c @@ -2,7 +2,7 @@ * Routines for IAPP dissection * Copyright 2002, Alfred Arnold <aarnold@elsa.de> * - * $Id: packet-iapp.c,v 1.2 2002/04/29 08:20:08 guy Exp $ + * $Id: packet-iapp.c,v 1.3 2002/05/10 23:20:38 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -198,7 +198,8 @@ static value_string iapp_auth_type_vals[] = { static gchar textbuffer[2000]; -gchar *iaconvertbufftostr(gchar *dest, tvbuff_t *tvb, int offset, int length) +static gchar* +iaconvertbufftostr(gchar *dest, tvbuff_t *tvb, int offset, int length) { /*converts the raw buffer into printable text */ guint32 i; @@ -217,7 +218,7 @@ gchar *iaconvertbufftostr(gchar *dest, tvbuff_t *tvb, int offset, int length) } else { - sprintf(&(dest[totlen]), "\\%03u", pd[i]); + sprintf(&(dest[totlen]), "\\%03o", pd[i]); totlen=totlen+strlen(&(dest[totlen])); } } |