summaryrefslogtreecommitdiff
path: root/src/htslib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/htslib.c')
-rw-r--r--src/htslib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/htslib.c b/src/htslib.c
index 9c06cd5..c058733 100644
--- a/src/htslib.c
+++ b/src/htslib.c
@@ -3081,7 +3081,7 @@ int linputsoc_t(T_SOC soc, char *s, int max, int timeout) {
}
int linput_trim(FILE * fp, char *s, int max) {
int rlen = 0;
- char *ls = (char *) malloct(max + 2);
+ char *ls = (char *) malloct(max + 1);
s[0] = '\0';
if (ls) {