summaryrefslogtreecommitdiff
path: root/src/proxy/proxytrack.h
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2014-05-29 08:20:07 +0000
committerXavier Roche <xroche@users.noreply.github.com>2014-05-29 08:20:07 +0000
commitae6d05fbb30ca8c0370b2be8cc1810b028616830 (patch)
tree0b7a239bbf51f74348f52a2281020cae5e2d2575 /src/proxy/proxytrack.h
parent803f7b5a33c74ced027f3a171a6a7966206d4e1d (diff)
Allocation cleanup (why "+2", why ?)
Diffstat (limited to 'src/proxy/proxytrack.h')
-rw-r--r--src/proxy/proxytrack.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/proxy/proxytrack.h b/src/proxy/proxytrack.h
index 6e4f755..b42f134 100644
--- a/src/proxy/proxytrack.h
+++ b/src/proxy/proxytrack.h
@@ -216,7 +216,7 @@ HTS_UNUSED static const char *jump_protocol_and_auth(const char *source) {
#endif
HTS_UNUSED static int linput_trim(FILE * fp, char *s, int max) {
int rlen = 0;
- char *ls = (char *) malloc(max + 2);
+ char *const ls = (char *) malloc(max + 1);
s[0] = '\0';
if (ls) {