From 3af2d0708a3a73e224de8982ea7a8369d991192e Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 5 Dec 2007 10:30:38 +0000 Subject: Use g_vsnprintf(), not vsprintf(), for safety's sake. svn path=/trunk/; revision=23766 --- epan/except.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'epan/except.c') diff --git a/epan/except.c b/epan/except.c index 103f6e94e2..8181c5d8cd 100644 --- a/epan/except.c +++ b/epan/except.c @@ -307,7 +307,7 @@ void except_throwf(long group, long code, const char *fmt, ...) va_list vl; va_start (vl, fmt); - vsprintf(buf, fmt, vl); + g_vsnprintf(buf, XCEPT_BUFFER_SIZE, fmt, vl); va_end (vl); except_throwd(group, code, buf, buf); } -- cgit v1.2.1