X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=sequence.cpp;fp=sequence.cpp;h=ddc7d4c5a410ca99a415ee1e15d7c60b2199060f;hp=d1cf7299a46c522255eb725dccb058673f6b1c78;hb=2cfb747aa8f63bde9c1114001e6d2e81ccd26178;hpb=4a760c2d164aa955dee7d3d38da323822763d906 diff --git a/sequence.cpp b/sequence.cpp index d1cf729..ddc7d4c 100644 --- a/sequence.cpp +++ b/sequence.cpp @@ -683,12 +683,12 @@ int Sequence::filterToPos(int start){ if (start > aligned.length()) { start = aligned.length(); m->mothurOut("[ERROR]: start to large.\n"); } - for(int j = 0; j < start-1; j++) { + for(int j = 0; j < start; j++) { aligned[j] = '.'; } //things like ......----------AT become ................AT - for(int j = start-1; j < aligned.length(); j++) { + for(int j = start; j < aligned.length(); j++) { if (isalpha(aligned[j])) { break; } else { aligned[j] = '.'; } }