Skip to content

Commit e362fbc

Browse files
authored
Update bsdiff.c
Fixed previous merge.
1 parent 4e78493 commit e362fbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bsdiff.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ static int bsdiff_internal(const struct bsdiff_request req)
294294
lenb-=lens;
295295
};
296296

297-
ctrlnext[0]=lenf;
297+
ctrlnext[0]=lenf;
298298
ctrlnext[1]=(scan-lenb)-(lastscan+lenf);
299299
ctrlnext[2]=(pos-lenb)-(lastpos+lenf);
300300

@@ -340,7 +340,7 @@ static int bsdiff_internal(const struct bsdiff_request req)
340340
offtout(ctrlcur[2],buf+16);
341341

342342
/* Write control data */
343-
if (writedata(req.stream, buf, sizeof(buf)))
343+
if (writedata(req.stream, buf, sizeof(buf), BSDIFF_WRITECONTROL))
344344
return -1;
345345
};
346346

0 commit comments

Comments
 (0)