aboutsummaryrefslogtreecommitdiffstats
path: root/packet-multipart.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2004-01-16 04:32:30 +0000
committerGerald Combs <gerald@wireshark.org>2004-01-16 04:32:30 +0000
commitbaa2cb115f23ac3583cef9e0a5d707ee1c88b015 (patch)
treecccbe088ff6395f28a95981cfbf8d5384c0ebe0d /packet-multipart.c
parent36d97f39636d217b5b1c52382aef4c23cadda233 (diff)
GLib versions prior to 2.0 don't have g_ascii_strdown(). Use g_strdown()
instead. svn path=/trunk/; revision=9672
Diffstat (limited to 'packet-multipart.c')
-rwxr-xr-xpacket-multipart.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/packet-multipart.c b/packet-multipart.c
index c72a4c714b..b4060be8e5 100755
--- a/packet-multipart.c
+++ b/packet-multipart.c
@@ -3,7 +3,7 @@
* Copyright 2004, Anders Broman <anders.broman[at]ericsson.com>
* Copyright 2004, Olivier Biot <olivier.biot[at]siemens.com>
*
- * $Id: packet-multipart.c,v 1.2 2004/01/16 01:49:37 obiot Exp $
+ * $Id: packet-multipart.c,v 1.3 2004/01/16 04:32:30 gerald Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -588,7 +588,12 @@ process_body_part(proto_tree *tree, tvbuff_t *tvb, const guint8 *boundary,
} else {
parameters = NULL;
}
+#if GLIB_MAJOR_VERSION < 2
+ content_type_str = g_strdup(value_str);
+ g_strdown(content_type_str);
+#else
content_type_str = g_ascii_strdown(value_str, -1);
+#endif
}
break;