]> git.donarmstrong.com Git - samtools.git/commitdiff
* samtools-0.1.2-11
authorHeng Li <lh3@live.co.uk>
Mon, 2 Mar 2009 10:45:28 +0000 (10:45 +0000)
committerHeng Li <lh3@live.co.uk>
Mon, 2 Mar 2009 10:45:28 +0000 (10:45 +0000)
 * use "GLF\3" as the magic for GLFv3 files

bamtk.c
glf.c

diff --git a/bamtk.c b/bamtk.c
index 9ebaac6b4ccff5582f4c77a746265b036b9026b6..dc1805cb73ad8ccc049d66abed05ce05de6bcb26 100644 (file)
--- a/bamtk.c
+++ b/bamtk.c
@@ -3,7 +3,7 @@
 #include "bam.h"
 
 #ifndef PACKAGE_VERSION
-#define PACKAGE_VERSION "0.1.2-10"
+#define PACKAGE_VERSION "0.1.2-11"
 #endif
 
 int bam_taf2baf(int argc, char *argv[]);
diff --git a/glf.c b/glf.c
index 0d09180c4befb49f4ff6f5129f8b58989e44808a..731e872cae3f5d9928f0ace3ae6f9c6546a304b5 100644 (file)
--- a/glf.c
+++ b/glf.c
@@ -27,7 +27,7 @@ glf_header_t *glf_header_read(glfFile fp)
        }
        h = (glf_header_t*)calloc(1, sizeof(glf_header_t));
        bgzf_read(fp, magic, 4);
-       if (strncmp(magic, "GLF\2", 4)) {
+       if (strncmp(magic, "GLF\3", 4)) {
                fprintf(stderr, "[glf_header_read] invalid magic. Abort.\n");
                exit(1);
        }
@@ -41,7 +41,7 @@ glf_header_t *glf_header_read(glfFile fp)
 
 void glf_header_write(glfFile fp, const glf_header_t *h)
 {
-       bgzf_write(fp, "GLF\2", 4);
+       bgzf_write(fp, "GLF\3", 4);
        bgzf_write(fp, &h->l_text, 4);
        if (h->l_text) bgzf_write(fp, h->text, h->l_text);
 }