aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kmer_frequency_per_sequence.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kmer_frequency_per_sequence.c b/kmer_frequency_per_sequence.c
index 7c1bf9b..7fc9c6f 100644
--- a/kmer_frequency_per_sequence.c
+++ b/kmer_frequency_per_sequence.c
@@ -43,7 +43,7 @@ int main(int argc, char **argv) {
unsigned long total = 0;
// reset our count matrix to zero
- memset(counts, 0, width);
+ memset(counts, 0, width * sizeof(unsigned long long));
for(i = 0; i < read - kmer; i++) {
line[i] = alpha[(int)line[i]];