Skip to content

Commit

Permalink
Stable release 1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ezorita committed Sep 6, 2017
1 parent f1c3c71 commit e125759
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/starcode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/starcode.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#define _GNU_SOURCE
#include <stdio.h>

#define VERSION "starcode-v1.0"
#define VERSION "starcode-v1.1"
#define STARCODE_MAX_TAU 8

typedef enum {
Expand Down

0 comments on commit e125759

Please sign in to comment.