]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/i386-stub.c
This commit was manufactured by cvs2svn to create branch 'gdb_7_0-branch'.
[thirdparty/binutils-gdb.git] / gdb / i386-stub.c
index 1251567e9121d5ddb337a6f589a615165844f3cc..6b91296291f2d4bafe46f2168bc904c704a12d3c 100644 (file)
@@ -474,7 +474,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 == '$')