diff options
author | Guy Harris <guy@alum.mit.edu> | 2008-09-03 19:14:52 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2008-09-03 19:14:52 +0000 |
commit | 9d1b5335ac1f48f57712f2937391c7a7b9ce6c19 (patch) | |
tree | a80eab1d12198196a9ae17670fe8f845c7204593 /epan/dissectors/packet-k12.c | |
parent | 5dd544c914ac58d483bbb78bf7903de331fa2318 (diff) |
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 'epan/dissectors/packet-k12.c')
-rw-r--r-- | epan/dissectors/packet-k12.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/epan/dissectors/packet-k12.c b/epan/dissectors/packet-k12.c index 0d982c38ed..39cf6dfef8 100644 --- a/epan/dissectors/packet-k12.c +++ b/epan/dissectors/packet-k12.c @@ -9,7 +9,6 @@ * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 * -* * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 @@ -32,13 +31,13 @@ #include <errno.h> #include <glib.h> #include <string.h> +#include <wsutil/str_util.h> #include <epan/packet.h> #include <prefs.h> #include <epan/report_err.h> #include <epan/emem.h> #include <epan/uat.h> #include <epan/expert.h> -#include <epan/strutil.h> #include "packet-sscop.h" #include "packet-umts_fp.h" @@ -369,7 +368,7 @@ protos_chk_cb(void* r _U_, const char* p, unsigned len, void* u1 _U_, void* u2 _ guint num_protos, i; g_strstrip(line); - g_ascii_strdown(line,len); + ascii_strdown_inplace(line); protos = ep_strsplit(line,":",0); |