summaryrefslogtreecommitdiff
path: root/epan/except.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2007-12-05 10:30:38 +0000
committerGuy Harris <guy@alum.mit.edu>2007-12-05 10:30:38 +0000
commit3af2d0708a3a73e224de8982ea7a8369d991192e (patch)
tree277ba645bc98cf308cf7f709fa7d76f233a2c954 /epan/except.c
parent0be3a6524faa63ea7225dbda8e8aff8ab2be5bf7 (diff)
downloadwireshark-3af2d0708a3a73e224de8982ea7a8369d991192e.tar.gz
Use g_vsnprintf(), not vsprintf(), for safety's sake.
svn path=/trunk/; revision=23766
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);
}