aboutsummaryrefslogtreecommitdiffstats
path: root/epan/except.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2007-12-05 10:30:38 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2007-12-05 10:30:38 +0000
commite63e5df794ea6daa9ea587a1101a232c9aa92292 (patch)
tree277ba645bc98cf308cf7f709fa7d76f233a2c954 /epan/except.c
parent1201a32ec4f9b7a7ad673f50c18a54e9c888cea7 (diff)
Use g_vsnprintf(), not vsprintf(), for safety's sake.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23766 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/except.c')
-rw-r--r--epan/except.c2
1 files changed, 1 insertions, 1 deletions
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);
}