Skip to content

Commit da0688d

Browse files
committed
assert to prevent truncation bug regression
1 parent d3997f9 commit da0688d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/showalign.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,6 @@ auto align_getrow(char const * seq, char const * cigar, int const alignlen, bool
311311
cursor += runlength;
312312
}
313313

314-
// assert(row[cursor] == '\0'); // is not always true?! (see issue 473 for a test)
315-
row[cursor] = '\0'; // not already initialized to null?
314+
assert(row[cursor] == '\0');
316315
return row;
317316
}

0 commit comments

Comments
 (0)