diff options
author | Calvin Morrison <mutantturkey@gmail.com> | 2013-09-13 14:09:38 -0400 |
---|---|---|
committer | Calvin Morrison <mutantturkey@gmail.com> | 2013-09-13 14:09:38 -0400 |
commit | 4ae5cfe9e627429ee4d27390da9eb07a410f8831 (patch) | |
tree | df3820e629b8f05aa34e81d669bd94dbd7f9b404 /kmer_frequency_per_sequence.c | |
parent | dc659709ec94c9d414df8b04f62322f74e1e4a0d (diff) |
don't use strlen(line) when we already have that in the read variable
Diffstat (limited to 'kmer_frequency_per_sequence.c')
-rw-r--r-- | kmer_frequency_per_sequence.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kmer_frequency_per_sequence.c b/kmer_frequency_per_sequence.c index 5fff8ba..5191b86 100644 --- a/kmer_frequency_per_sequence.c +++ b/kmer_frequency_per_sequence.c @@ -37,7 +37,7 @@ int main(int argc, char **argv) { if(counts == NULL) exit(EXIT_FAILURE); - for(i = 0; i < strlen(line) - kmer; i++) { + for(i = 0; i < read - kmer; i++) { counts[convert_kmer_to_index(&line[i], kmer, width)]++; } |