mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-04 06:00:30 +00:00
[process_bulk] walk the buffer
This commit is contained in:
parent
78eeaf55ea
commit
24c194df1b
@ -1629,6 +1629,8 @@ process_bulk(inputctx* ictx, unsigned char* buf, int* bufused){
|
||||
if(consumed <= 0){
|
||||
break;
|
||||
}
|
||||
*bufused -= consumed;
|
||||
offset += consumed;
|
||||
}
|
||||
// move any leftovers to the front
|
||||
if(*bufused){
|
||||
|
Loading…
Reference in New Issue
Block a user