dj(1): fix io[0].bufuse underflow
This commit is contained in:
parent
0df2c9f566
commit
8f8de5de2b
2
src/dj.c
2
src/dj.c
@ -268,7 +268,7 @@ int main(int argc, char *argv[]){
|
||||
|
||||
/* hack to intentionally get a partial read from Io_read */
|
||||
if((skipping = MIN(io[0].seek, io[0].bs)) > 0)
|
||||
io[0].bufuse = io[0].bs - io[0].seek;
|
||||
io[0].bufuse = io[0].bs - (size_t)skipping;
|
||||
|
||||
t = io[0].bufuse;
|
||||
if(Io_read(&io[0])->bufuse == t && !noerror && io[0].error == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user