Added buffer overflow warning.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@810 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
james.goppert 2010-11-09 11:41:08 +00:00
parent 33a7d26846
commit a771cbacc0
1 changed files with 7 additions and 0 deletions

View File

@ -98,6 +98,13 @@ BinComm::update(void)
// XXX we might want to further constrain this count
count = _interface->available();
if (count >= 128)
{
char text[50];
strncpy(text,"buffer overflow",50);
send_msg_status_text(1,text);
}
while (count--)
_decode(_interface->read());
}