summaryrefslogtreecommitdiff
path: root/wiretap/iseries.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2008-09-03 19:14:52 +0000
committerGuy Harris <guy@alum.mit.edu>2008-09-03 19:14:52 +0000
commit9d1b5335ac1f48f57712f2937391c7a7b9ce6c19 (patch)
treea80eab1d12198196a9ae17670fe8f845c7204593 /wiretap/iseries.c
parent5dd544c914ac58d483bbb78bf7903de331fa2318 (diff)
downloadwireshark-9d1b5335ac1f48f57712f2937391c7a7b9ce6c19.tar.gz
g_ascii_strdown() and g_ascii_strup(), unlike g_strdown() and g_strup(),
do *not* modify the string handed to them - they g_mallocate a new string and return it. Create routines that *do* ASCII-only case mapping in place, and use them instead. Clean up indentation. svn path=/trunk/; revision=26131
Diffstat (limited to 'wiretap/iseries.c')
-rw-r--r--wiretap/iseries.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/wiretap/iseries.c b/wiretap/iseries.c
index 4c31cf1724..f9ba4b303a 100644
--- a/wiretap/iseries.c
+++ b/wiretap/iseries.c
@@ -123,6 +123,8 @@
#include <ctype.h>
#include <errno.h>
+#include <wsutil/str_util.h>
+
#define ISERIES_HDR_MAGIC_STR " COMMUNICATIONS TRACE"
#define ISERIES_HDR_MAGIC_LEN 21
#define ISERIES_PKT_MAGIC_STR "ETHV2"
@@ -275,7 +277,7 @@ iseries_check_file_type (wtap * wth, int *err, int format)
{
iseries_UNICODE_to_ASCII ((guint8 *)buf, ISERIES_LINE_LENGTH);
}
- g_ascii_strup(buf,ISERIES_LINE_LENGTH);
+ ascii_strup_inplace(buf);
num_items_scanned = sscanf (buf,
" OBJECT PROTOCOL . . . . . . : %8s",
protocol);