summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index 427833b..3f969a6 100644
--- a/util.c
+++ b/util.c
@@ -61,7 +61,7 @@ char *get(FILE *srv, char *host, char *path) {
p+=4;
i = l - (p - buf);
- c = malloc(i);
+ c = malloc(i+1);
memcpy(c, p, i);
free(buf);