From bb995543393c070fd23043dd632e7cc158eaf13e Mon Sep 17 00:00:00 2001 From: Dmitry Gorbachev Date: Mon, 12 Oct 2009 23:52:33 +0000 Subject: [PATCH] Fix "array subscript is above array bounds" bug. svn path=/trunk/; revision=43430 --- reactos/base/shell/explorer/i386-stub-win32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/base/shell/explorer/i386-stub-win32.c b/reactos/base/shell/explorer/i386-stub-win32.c index 3587612d704..9bd83d3ce08 100644 --- a/reactos/base/shell/explorer/i386-stub-win32.c +++ b/reactos/base/shell/explorer/i386-stub-win32.c @@ -547,7 +547,7 @@ getpacket (void) count = 0; /* now, read until a # or end of buffer is found */ - while (count < BUFMAX) + while (count < BUFMAX - 1) { ch = getDebugChar (); if (ch == '$')