Remove usage of vsprintf in favour of vsnprintf and make
more use of STRINGBUFLEN. Some ports may need a new stub for this, discussed with Chrilith. svn-id: r17463
This commit is contained in:
parent
aff66038f3
commit
24c92d0091
13 changed files with 18 additions and 22 deletions
|
@ -51,7 +51,7 @@ void CDECL debugC(int channel, const char *s, ...) {
|
|||
return;
|
||||
|
||||
va_start(va, s);
|
||||
vsprintf(buf, s, va);
|
||||
vsnprintf(buf, STRINGBUFLEN, s, va);
|
||||
va_end(va);
|
||||
|
||||
debug(buf);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue