refixed transport bug which caused sml_file drops
This commit is contained in:
parent
6ff54a5dce
commit
12659704bb
1 changed files with 2 additions and 2 deletions
|
@ -77,8 +77,8 @@ size_t sml_transport_read(int fd, unsigned char *buffer, size_t max_len) {
|
|||
if (end) {
|
||||
end++;
|
||||
if (end == 4) {
|
||||
memcpy(buffer, &(buf[0]), i);
|
||||
return i + 1;
|
||||
memcpy(buffer, &(buf[0]), ++i);
|
||||
return i;
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Reference in a new issue