From 13351ef77d9f9f1cd130e7cf3fb9ce5b5cfc83e8 Mon Sep 17 00:00:00 2001 From: Calvin Morrison Date: Wed, 12 Jun 2013 09:27:52 -0400 Subject: use larger size for count_commmand, remove extra quotes, and fix a broken check in multifasta2otu --- src/c/quikr_functions.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/c/quikr_functions.c') diff --git a/src/c/quikr_functions.c b/src/c/quikr_functions.c index 6a82320..1f188a9 100644 --- a/src/c/quikr_functions.c +++ b/src/c/quikr_functions.c @@ -44,8 +44,8 @@ void normalize_matrix(double *matrix, long height, long width) { double *load_count_matrix(char *filename, long width, int kmer) { - double *count_matrix = malloc((width)*sizeof(double)); - char count_command[512]; + double *count_matrix = malloc(width*sizeof(double)); + char count_command[1024]; long x = 0; char *line = NULL; size_t len = 0; @@ -115,6 +115,7 @@ double *load_sensing_matrix(char *filename, long height, long width) { return sensing_matrix; } + char **load_headers(char *filename, long sequences) { char command[512]; char *line= NULL; -- cgit v1.2.3