* m32r-stub.c (getpacket): Likewise.
* m68k-stub.c (getpacket): Likewise.
* sh-stub.c (getpacket): Likewise.
* sparc-stub.c (getpacket): Likewise.
+2006-03-30 Adrien Kunysz <a_kunysz@yahoo.com>
+
+ * i386-stub.c (getpacket): Fix array overflow.
+ * m32r-stub.c (getpacket): Likewise.
+ * m68k-stub.c (getpacket): Likewise.
+ * sh-stub.c (getpacket): Likewise.
+ * sparc-stub.c (getpacket): Likewise.
+
2006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
* frame.h (set_current_sal_from_frame): New prototype.
count = 0;
/* now, read until a # or end of buffer is found */
- while (count < BUFMAX)
+ while (count < BUFMAX - 1)
{
ch = getDebugChar ();
if (ch == '$')
count = 0;
/* now, read until a # or end of buffer is found */
- while (count < BUFMAX)
+ while (count < BUFMAX - 1)
{
ch = getDebugChar ();
if (ch == '$')
count = 0;
/* now, read until a # or end of buffer is found */
- while (count < BUFMAX)
+ while (count < BUFMAX - 1)
{
ch = getDebugChar ();
if (ch == '$')
count = 0;
/* now, read until a # or end of buffer is found */
- while (count < BUFMAX)
+ while (count < BUFMAX - 1)
{
ch = getDebugChar ();
if (ch == '$')
count = 0;
/* now, read until a # or end of buffer is found */
- while (count < BUFMAX)
+ while (count < BUFMAX - 1)
{
ch = getDebugChar ();
if (ch == '$')