diff options
author | Guy Harris <guy@alum.mit.edu> | 2007-12-05 10:30:38 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2007-12-05 10:30:38 +0000 |
commit | 3af2d0708a3a73e224de8982ea7a8369d991192e (patch) | |
tree | 277ba645bc98cf308cf7f709fa7d76f233a2c954 | |
parent | 0be3a6524faa63ea7225dbda8e8aff8ab2be5bf7 (diff) |
Use g_vsnprintf(), not vsprintf(), for safety's sake.
svn path=/trunk/; revision=23766
-rw-r--r-- | epan/except.c | 2 |
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); } |