]> git.donarmstrong.com Git - samtools.git/commitdiff
Put the right filename in the error message.
authorOn behalf of John Marshall <lh3@sanger.ac.uk>
Mon, 11 Jan 2010 23:51:49 +0000 (23:51 +0000)
committerOn behalf of John Marshall <lh3@sanger.ac.uk>
Mon, 11 Jan 2010 23:51:49 +0000 (23:51 +0000)
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;
        }