From 0dc9fb3d4ab00d14bf45c597471e10e601efd4d4 Mon Sep 17 00:00:00 2001 From: Ulf Lamping Date: Mon, 8 Aug 2005 18:50:39 +0000 Subject: various code cleanup: -use g_snprintf instead of sprintf and snprintf -use g_strdup_printf where appropriate -remove #include "snprintf.h" (as only g_snprintf should be used) -replace some more alloc/realloc/calloc/free with their glib pendants svn path=/trunk/; revision=15264 --- epan/asn1.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'epan/asn1.c') diff --git a/epan/asn1.c b/epan/asn1.c index d3d9fc02f3..5d118479aa 100644 --- a/epan/asn1.c +++ b/epan/asn1.c @@ -66,10 +66,6 @@ #include -#ifdef NEED_SNPRINTF_H -# include "snprintf.h" -#endif - #include #include @@ -1077,7 +1073,7 @@ asn1_err_to_str(int err) break; default: - snprintf(errstrbuf, sizeof errstrbuf, "Unknown error (%d)", err); + g_snprintf(errstrbuf, sizeof errstrbuf, "Unknown error (%d)", err); errstr = errstrbuf; break; } -- cgit v1.2.3