mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Fixed the maximum length in DbgPrint().
svn path=/trunk/; revision=2723
This commit is contained in:
parent
6f1ce04e39
commit
52ec7b4aa1
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: print.c,v 1.13 2002/02/25 22:45:04 phreak Exp $
|
||||
/* $Id: print.c,v 1.14 2002/03/17 17:23:03 hbirr Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -62,7 +62,7 @@ DbgPrint(PCH Format, ...)
|
|||
|
||||
/* init ansi string */
|
||||
DebugString.Buffer = Buffer;
|
||||
DebugString.MaximumLength = 512;
|
||||
DebugString.MaximumLength = sizeof(Buffer);
|
||||
|
||||
va_start (ap, Format);
|
||||
DebugString.Length = _vsnprintf (Buffer, sizeof( Buffer ), Format, ap);
|
||||
|
|
Loading…
Reference in a new issue