hex2bin: Start code should not be in buffer

This commit is contained in:
Gregory Nutt 2014-06-15 13:28:03 -06:00
parent c61bb3a0a2
commit 0bb3b49cc2

View File

@ -259,7 +259,14 @@ static int readstream(FAR struct lib_instream_s *instream,
ch = instream->get(instream);
}
/* Read until the end of line is encountered */
/* Skip over the start code */
if (ch != EOF)
{
ch = instream->get(instream);
}
/* Then read, verify, and buffer until the end of line is encountered */
while (ch != EOF && nbytes < (MAXRECORD_ASCSIZE-1))
{