aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCalvin Morrison <mutantturkey@gmail.com>2013-10-31 14:40:37 -0400
committerCalvin Morrison <mutantturkey@gmail.com>2013-10-31 14:40:37 -0400
commit87cf0208484b33d3194add9570b936998b44e9a3 (patch)
tree5510aeb5fbf1db8de26729f8c028bc09020e1a5c
parenteeca13b016986de04c56eb4bb3d8c8493feea22d (diff)
fix memset
-rw-r--r--src/c/kmer_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/c/kmer_utils.c b/src/c/kmer_utils.c
index 3c2a4cd..08463a2 100644
--- a/src/c/kmer_utils.c
+++ b/src/c/kmer_utils.c
@@ -80,7 +80,7 @@ unsigned long long * get_kmer_counts_from_file(const char *fn, const unsigned in
// malloc our return array
unsigned long long * counts = malloc((width+ 1) * sizeof(unsigned long long));
- memset(counts, 0, width);
+ memset(counts, 0, width * sizeof(unsigned long long));
if(counts == NULL) {
fprintf(stderr, strerror(errno));
exit(EXIT_FAILURE);