From: On behalf of John Marshall Date: Mon, 11 Jan 2010 23:51:49 +0000 (+0000) Subject: Put the right filename in the error message. X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=5f226a4a811f70170a3d1818463d4f9c15a21c85;p=samtools.git Put the right filename in the error message. --- diff --git a/faidx.c b/faidx.c index 811bdf8..dbd8b3e 100644 --- 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; }