aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCalvin Morrison <mutantturkey@gmail.com>2013-10-31 15:03:28 -0400
committerCalvin Morrison <mutantturkey@gmail.com>2013-10-31 15:03:28 -0400
commit073d771958ff5ca8ea75643e3eec3d2395706cab (patch)
tree3186a755f76a8438972197e1d7e1b870c44dd270
parent73a1855d95ff13306f58ac4c2952a87f5068228e (diff)
fix memset again
-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]];