diff options
author | Calvin Morrison <mutantturkey@gmail.com> | 2013-06-12 09:27:52 -0400 |
---|---|---|
committer | Calvin Morrison <mutantturkey@gmail.com> | 2013-06-12 09:27:52 -0400 |
commit | 13351ef77d9f9f1cd130e7cf3fb9ce5b5cfc83e8 (patch) | |
tree | 8dece118bd1eb621b7b994b69b100a348f9b7917 | |
parent | 60ee644d6f1add6722eb8444385f203c6110975a (diff) |
use larger size for count_commmand, remove extra quotes, and fix a broken check in multifasta2otu
-rw-r--r-- | src/c/multifasta_to_otu.c | 2 | ||||
-rw-r--r-- | src/c/quikr_functions.c | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/c/multifasta_to_otu.c b/src/c/multifasta_to_otu.c index e0fb128..01a4f0e 100644 --- a/src/c/multifasta_to_otu.c +++ b/src/c/multifasta_to_otu.c @@ -144,7 +144,7 @@ int main(int argc, char **argv) { } input_directory_dh = opendir(input_fasta_directory); - if(input_fasta_directory == NULL) { + if(input_directory_dh == NULL) { fprintf(stderr, "could not open %s\n", input_fasta_directory); exit(EXIT_FAILURE); } 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; |