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/uat.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/uat.c')
-rw-r--r-- | epan/uat.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/epan/uat.c b/epan/uat.c index 61dc25b939..8bfd325195 100644 --- a/epan/uat.c +++ b/epan/uat.c @@ -38,12 +38,15 @@ #include <stdarg.h> #include <glib.h> + +#include <wsutil/file_util.h> +#include <wsutil/str_util.h> + #include <epan/emem.h> #include <epan/report_err.h> #include <epan/filesystem.h> #include <epan/packet.h> #include <epan/range.h> -#include <wsutil/file_util.h> #include "uat-int.h" @@ -381,7 +384,7 @@ gboolean uat_fld_chk_str(void* u1 _U_, const char* strptr, unsigned len _U_, voi gboolean uat_fld_chk_proto(void* u1 _U_, const char* strptr, unsigned len, void* u2 _U_, void* u3 _U_, const char** err) { if (len) { char* name = ep_strndup(strptr,len); - g_ascii_strdown(name,len); + ascii_strdown_inplace(name); g_strchug(name); if (find_dissector(name)) { |