From 3fe3402c50d09bc291d95246227e04b54ce667a7 Mon Sep 17 00:00:00 2001 From: Heng Li Date: Mon, 2 Mar 2009 10:45:28 +0000 Subject: [PATCH] * samtools-0.1.2-11 * use "GLF\3" as the magic for GLFv3 files --- bamtk.c | 2 +- glf.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bamtk.c b/bamtk.c index 9ebaac6..dc1805c 100644 --- 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 0d09180..731e872 100644 --- 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); } -- 2.39.5