Use g_vsnprintf(), not vsprintf(), for safety's sake.
svn path=/trunk/; revision=23766
This commit is contained in:
parent
0be3a6524f
commit
3af2d0708a
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue