Skip to content

Commit

Permalink
Fixed a minor bug in the methylation context stage.
Browse files Browse the repository at this point in the history
  • Loading branch information
cegonse committed Feb 22, 2017
1 parent ed55e97 commit a0fc4ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bs/methylation.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ void rev_comp(char *orig, char *dest, int len) {
dest[len - i - 1] = complement(orig[i]);
}

dest[len] = '\0';
dest[len - 1] = '\0';
}

//------------------------------------------------------------------------------------
Expand Down Expand Up @@ -190,7 +190,7 @@ char *obtain_seq(alignment_t *alig, fastq_read_t * orig) {
}
}

seq[pos] = '\0';
seq[seq_len - 1] = '\0';

free(cigar);
return seq;
Expand Down

0 comments on commit a0fc4ac

Please sign in to comment.