mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 17:19:03 -04: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…
x
Reference in New Issue
Block a user