summaryrefslogtreecommitdiff
path: root/src/htsserver.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/htsserver.h')
-rw-r--r--src/htsserver.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/htsserver.h b/src/htsserver.h
index 7daeec0..0db7e1c 100644
--- a/src/htsserver.h
+++ b/src/htsserver.h
@@ -228,7 +228,7 @@ static int linput(FILE * fp, char *s, int max) {
}
static int linput_trim(FILE * fp, char *s, int max) {
int rlen = 0;
- char *ls = (char *) malloc(max + 2);
+ char *ls = (char *) malloc(max + 1);
s[0] = '\0';
if (ls) {