summaryrefslogtreecommitdiff
path: root/epan/strutil.h
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2007-10-26 05:42:12 +0000
committerAnders Broman <anders.broman@ericsson.com>2007-10-26 05:42:12 +0000
commit3a16fb20a3ef22213bac070b871c91a141cbba65 (patch)
tree4d67f48f3730a2b0a859650113866f141a786480 /epan/strutil.h
parent300503cdcb355a2415ee44df7350e79113bb3ee4 (diff)
downloadwireshark-3a16fb20a3ef22213bac070b871c91a141cbba65.tar.gz
Apply yet another set of the optimization patches:
Replace strncpy with g_strlcpy. Add g_strlcat for GTK1 and don't use g_snprintf in GTK1 g_strlcpy printf family is very slow. svn path=/trunk/; revision=23273
Diffstat (limited to 'epan/strutil.h')
-rw-r--r--epan/strutil.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/epan/strutil.h b/epan/strutil.h
index 5e5eac1df4..7c2dae483f 100644
--- a/epan/strutil.h
+++ b/epan/strutil.h
@@ -218,6 +218,7 @@ char * epan_strcasestr(const char *haystack, const char *needle);
/* g_strlcat() does not exist in GLib 1.2[.x] */
#if GLIB_MAJOR_VERSION < 2
gsize g_strlcat(gchar *dst, gchar *src, gsize size);
+gsize g_strlcpy(gchar *dest, const gchar *src, gsize dest_size);
#endif
#if GLIB_MAJOR_VERSION < 2