Use g_vsnprintf(), not vsprintf(), for safety's sake.

svn path=/trunk/; revision=23766
This commit is contained in:
Guy Harris 2007-12-05 10:30:38 +00:00
parent 0be3a6524f
commit 3af2d0708a
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}