diff options
author | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2006-02-23 21:49:30 +0000 |
---|---|---|
committer | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2006-02-23 21:49:30 +0000 |
commit | 4a38167d005ea62eb116949c54fc09c2891de784 (patch) | |
tree | 57ae01024684c85d8c6e61410b50e1a30f2944f6 /epan/strutil.h | |
parent | e8c497c9550d320b2b9bbca272cd07231214cd29 (diff) | |
download | wireshark-4a38167d005ea62eb116949c54fc09c2891de784.tar.gz wireshark-4a38167d005ea62eb116949c54fc09c2891de784.tar.bz2 wireshark-4a38167d005ea62eb116949c54fc09c2891de784.zip |
create a real function to emulate g_strlcat() for GTK<2
so that the linker will find it.
This eliminates the need to include strutil.h (where this was previously a macro) in all callers of this function.
svn path=/trunk/; revision=17392
Diffstat (limited to 'epan/strutil.h')
-rw-r--r-- | epan/strutil.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/epan/strutil.h b/epan/strutil.h index ac5dc5aaab..3fbc2437fd 100644 --- a/epan/strutil.h +++ b/epan/strutil.h @@ -155,14 +155,7 @@ char * convert_string_case(const char *string, gboolean case_insensitive); /* g_strlcat() does not exist in GLib 1.2[.x] */ #if GLIB_MAJOR_VERSION < 2 -#define g_strlcat(dst, src, size) \ - { \ - int strl; \ - strl=strlen(dst); \ - if(strl<size) \ - g_snprintf(dst+strl, size-strl, "%s", src); \ - dst[size-1]=0; \ - } +gsize g_strlcat(gchar *dst, gchar *src, gsize size); #endif /* g_ascii_isprint() does not exist in GLib 1.2[.x]. |