Uploaded samtools_0.1.16-1_amd64.changes.
[samtools.git] / faidx.c
diff --git a/faidx.c b/faidx.c
index 811bdf8858ff9ef18479fb644981ad4780bf7a8d..38292a13d73f33e75b12ad02baa3af2f66242bab 100644 (file)
--- a/faidx.c
+++ b/faidx.c
@@ -2,6 +2,7 @@
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
+#include <stdint.h>
 #include "faidx.h"
 #include "khash.h"
 
@@ -197,7 +198,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;
        }