diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2014-05-29 08:20:07 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2014-05-29 08:20:07 +0000 |
commit | ae6d05fbb30ca8c0370b2be8cc1810b028616830 (patch) | |
tree | 0b7a239bbf51f74348f52a2281020cae5e2d2575 /src/htsserver.h | |
parent | 803f7b5a33c74ced027f3a171a6a7966206d4e1d (diff) |
Allocation cleanup (why "+2", why ?)
Diffstat (limited to 'src/htsserver.h')
-rw-r--r-- | src/htsserver.h | 2 |
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) { |