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:
Jonathan Gray 2005-04-09 01:52:44 +00:00
parent aff66038f3
commit 24c92d0091
13 changed files with 18 additions and 22 deletions

View file

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