Skip to content

Commit

Permalink
Fix buffer start handling
Browse files Browse the repository at this point in the history
  • Loading branch information
agalakhov committed Nov 22, 2013
1 parent 2554f16 commit fc9d5d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/capt-command.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ void capt_sendrecv(uint16_t cmd, const void *buf, size_t size, void *reply, size
break;
/* block at 64 byte boundary is not the last one */
if (WORD(capt_iobuf[2], capt_iobuf[3]) > capt_iosize && capt_iosize % 64 == 6) {
capt_recv_buf(6, WORD(capt_iobuf[2], capt_iobuf[3]) - capt_iosize);
capt_recv_buf(capt_iosize, WORD(capt_iobuf[2], capt_iobuf[3]) - capt_iosize);
continue;
}
/* we should never get here */
Expand Down

0 comments on commit fc9d5d7

Please sign in to comment.