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 == '$')