blob: 41fac5fe4c668c8ae0ecc6eb3a05c39d0212a4cf (
plain) (
tree)
|
|
--- plib-1.8.5/src/util/ulError.cxx~ 2008-03-11 03:06:23.000000000 +0100
+++ plib-1.8.5/src/util/ulError.cxx 2011-12-27 15:38:25.305676650 +0100
@@ -39,7 +39,7 @@ void ulSetError ( enum ulSeverity severi
{
va_list argp;
va_start ( argp, fmt ) ;
- vsprintf ( _ulErrorBuffer, fmt, argp ) ;
+ vsnprintf ( _ulErrorBuffer, sizeof(_ulErrorBuffer), fmt, argp ) ;
va_end ( argp ) ;
if ( _ulErrorCB )
|