From 52ec7b4aa189a093b8e3999b0333b12b99806e0f Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Sun, 17 Mar 2002 17:23:03 +0000 Subject: [PATCH] Fixed the maximum length in DbgPrint(). svn path=/trunk/; revision=2723 --- reactos/ntoskrnl/dbg/print.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/ntoskrnl/dbg/print.c b/reactos/ntoskrnl/dbg/print.c index a21a195e3c8..ebd4eeeb80f 100644 --- a/reactos/ntoskrnl/dbg/print.c +++ b/reactos/ntoskrnl/dbg/print.c @@ -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);