refixed transport bug which caused sml_file drops

This commit is contained in:
Juri Glass 2012-06-07 20:38:49 +02:00
parent 6ff54a5dce
commit 12659704bb

View file

@ -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 {