diff options
-rw-r--r-- | util.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |
index : getxbook | ||
A collection of tools to download books from websites | njw |
summaryrefslogtreecommitdiff |
-rw-r--r-- | util.c | 2 |
@@ -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); |