X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=mussa.git;a=blobdiff_plain;f=alg%2Fflp_seqcomp.cpp;h=995a228ede7cc203a6a6c60a80342d8d2667e419;hp=1a1ea89c93bec9ee6917a91a40cbc3cd57e3e9eb;hb=75496e2c562d728af983c347527270eba360c6ee;hpb=b9755e1974201ff513c66b0fd684bde330c6fff6 diff --git a/alg/flp_seqcomp.cpp b/alg/flp_seqcomp.cpp index 1a1ea89..995a228 100644 --- a/alg/flp_seqcomp.cpp +++ b/alg/flp_seqcomp.cpp @@ -61,8 +61,10 @@ FLPs::seqcomp(const Sequence& sseq1, const Sequence& sseq2, bool is_RC) int start_i, seq1_i, seq2_i, win_i; // loop variables int matches; // number of matches in to a window int i2_offset; - const char *seq1 = sseq1.data(); - const char *seq2 = sseq2.data(); + std::string sseq1_str(sseq1.get_sequence()); + std::string sseq2_str(sseq2.get_sequence()); + const char *seq1 = sseq1_str.c_str(); + const char *seq2 = sseq2_str.c_str(); validate_sequence(sseq1); validate_sequence(sseq2);