about summary refs log tree commit diff stats
path: root/base64encode.c
diff options
context:
space:
mode:
Diffstat (limited to 'base64encode.c')
-rw-r--r--base64encode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/base64encode.c b/base64encode.c
index b6f0fe6..f27f4e0 100644
--- a/base64encode.c
+++ b/base64encode.c
@@ -28,7 +28,7 @@ encode(int fd, char *name)
 		tot += n;
 	}
 	buf[tot] = 0;
-	outbuf =  malloc(1 + (sizeof(char) * b64d_size(strlen(buf))));
+	outbuf =  malloc(1 + (sizeof(char) * b64e_size(strlen(buf))));
 	b64_encode(buf, strlen(buf), outbuf);
 	if((n=write(1,  outbuf, strlen(outbuf))) != strlen(outbuf))
 		sysfatal("writing bytes failed");