Skip to content

Commit ea5b1ac

Browse files
author
Devon Ryan
committed
Copy over change from lib2bit 0.2.2
1 parent 9fd5332 commit ea5b1ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib2bit/2bit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ void bytes2bases(char *seq, uint8_t *byte, uint32_t sz, int offset) {
6969

7070
// Deal with the first partial byte
7171
if(offset != 0) {
72-
while(offset < 4) {
72+
while(offset < 4 && pos < sz) {
7373
seq[pos++] = byte2base(foo, offset++);
7474
}
7575
if(pos >= sz) return;

0 commit comments

Comments
 (0)