aboutsummaryrefslogtreecommitdiff
path: root/lib/libfetch
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2004-08-10 01:01:54 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2004-08-10 01:01:54 +0000
commita6effd3d3bb7bfe6c78e407c6b0e3034ccd67fcb (patch)
tree54d2c840f0f798b60c3cdcc2e45fce800575b829 /lib/libfetch
parent800692ee9febf1327fb00a2fe06ccf0973c831b9 (diff)
Notes
Diffstat (limited to 'lib/libfetch')
-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;