aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/c/multifasta_to_otu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/c/multifasta_to_otu.c b/src/c/multifasta_to_otu.c
index 32cc3e9..5c2b23d 100644
--- a/src/c/multifasta_to_otu.c
+++ b/src/c/multifasta_to_otu.c
@@ -469,9 +469,9 @@ int main(int argc, char **argv) {
// print our filename headers
for(i = 0; i < dir_count - 1; i++) {
- fprintf(output_fh, "%s\t", filenames[i]);
+ fprintf(output_fh, "%s\t", basename(filenames[i]));
}
- fprintf(output_fh, "%s\n", filenames[dir_count - 1]);
+ fprintf(output_fh, "%s\n", basename(filenames[dir_count - 1]));
for(j = 0; j < sequences; j++) {