count = 0;
/* now, read until a # or end of buffer is found */
- while (count < BUFMAX)
+ while (count < BUFMAX - 1)
{
ch = getDebugChar ();
if (ch == '$')
int count;
char ch;
- /* $<packet info>#<checksum>. */
+ /* $<packet info>#<checksum>. */
do
{
putDebugChar ('$');
/* This function will generate a breakpoint exception. It is used at the
beginning of a program to sync up with a debugger and can be used
otherwise as a quick means to stop program execution and "break" into
- the debugger. */
+ the debugger. */
void
breakpoint (void)