aboutsummaryrefslogtreecommitdiff
path: root/lib/libfetch/http.c
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2004-08-07 20:23:50 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2004-08-07 20:23:50 +0000
commit264a4c03fcc802281a3c9faaf72a509ae2ad7b94 (patch)
tree131fa6941d74d8003c6ba723d27bab0be689eafe /lib/libfetch/http.c
parent0dab4d146c45b2a61ae7380c8dca9e429eb2198f (diff)
Notes
Diffstat (limited to 'lib/libfetch/http.c')
-rw-r--r--lib/libfetch/http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libfetch/http.c b/lib/libfetch/http.c
index 8d2f971000e4..1d723d1f0d16 100644
--- a/lib/libfetch/http.c
+++ b/lib/libfetch/http.c
@@ -566,7 +566,7 @@ _http_base64(const char *src)
int t, r;
l = strlen(src);
- if ((str = malloc(((l + 2) / 3) * 4)) == NULL)
+ if ((str = malloc(((l + 2) / 3) * 4 + 1)) == NULL)
return (NULL);
dst = str;
r = 0;