Skip to content

Commit

Permalink
Merge pull request lh3#190 from ihaque-freenome/bwa-postalt-fix
Browse files Browse the repository at this point in the history
Bug/patch: bwa-postalt.js writes invalid output for SAM input that is an exact multiple of 65536 bytes in length
  • Loading branch information
lh3 authored Apr 7, 2018
2 parents fde1fd7 + 27dd1da commit e624290
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bwakit/bwa-postalt.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ function bwa_postalt(args)
// process SAM
var buf2 = [], hla = {};
file = args.length - getopt.ind >= 2? new File(args[getopt.ind+1]) : new File();
while (file.readline(buf) >= 0) {
while (file.readline(buf) > 0) {
var m, line = buf.toString();

if (line.charAt(0) == '@') { // print and then skip the header line
Expand Down

0 comments on commit e624290

Please sign in to comment.