From ae88c45ef0e996600f277bb74261f42ced995b6c Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Fri, 10 May 2002 23:20:38 +0000 Subject: 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 --- packet-iapp.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'packet-iapp.c') 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 * - * $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 @@ -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])); } } -- cgit v1.2.3