davidkernell / ribsu

Automatically exported from code.google.com/p/ribsu
GNU General Public License v2.0
0 stars 0 forks source link

Parsing send commands is broken #6

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The parsing of commands to send is broken.  In function "stdin_read_callback"

You have to change it from :

while ((c = fgetc(fin)) != '\n'  &&  c != ' ' &&  c != EOF  &&  n < hex->max)

to

while ((c = fgetc(fin)) != '\n'  && c != EOF  &&  n < hex->max)

It is stopping at the first space, the raw buffer length is always 2!

Original issue reported on code.google.com by bevi...@gmail.com on 26 Sep 2010 at 7:38