Merge commit 'upstream/0.1.10'
[samtools.git] / faidx.c
diff --git a/faidx.c b/faidx.c
index 811bdf8858ff9ef18479fb644981ad4780bf7a8d..dbd8b3e48db4c7a041304b7419fd7ab868badd90 100644 (file)
--- a/faidx.c
+++ b/faidx.c
@@ -197,7 +197,7 @@ int fai_build(const char *fn)
        sprintf(str, "%s.fai", fn);
        rz = razf_open(fn, "r");
        if (rz == 0) {
-               fprintf(stderr, "[fai_build] fail to open the FASTA file %s\n",str);
+               fprintf(stderr, "[fai_build] fail to open the FASTA file %s\n",fn);
                free(str);
                return -1;
        }