From e125759b0811828d0cdb43e58c784bbf5cf0cde2 Mon Sep 17 00:00:00 2001 From: Eduard Valera i Zorita Date: Wed, 6 Sep 2017 09:44:02 +0200 Subject: [PATCH] Stable release 1.1 --- src/starcode.c | 8 ++++---- src/starcode.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/starcode.c b/src/starcode.c index f16694d..780b402 100644 --- a/src/starcode.c +++ b/src/starcode.c @@ -1392,9 +1392,9 @@ read_fastq krash(); } - char seq[M] = {0}; - char header[M] = {0}; - char info[2*M] = {0}; + char seq[M+1] = {0}; + char header[M+1] = {0}; + char info[2*M+2] = {0}; int lineno = 0; int const readh = OUTPUTT == NRED_OUTPUT; @@ -1425,7 +1425,7 @@ read_fastq } else if (lineno % 4 == 0) { if (readh) { - int status = snprintf(info, 2*M, "%s\n%s", header, line); + int status = snprintf(info, 2*M+2, "%s\n%s", header, line); if (status < 0 || status > 2*M - 1) { alert(); krash(); diff --git a/src/starcode.h b/src/starcode.h index 5251725..767cea5 100644 --- a/src/starcode.h +++ b/src/starcode.h @@ -27,7 +27,7 @@ #define _GNU_SOURCE #include -#define VERSION "starcode-v1.0" +#define VERSION "starcode-v1.1" #define STARCODE_MAX_TAU 8 typedef enum {