aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/base64.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/base64.c')
-rw-r--r--src/daemon/base64.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/daemon/base64.c b/src/daemon/base64.c
index 8ea73006..d99209e2 100644
--- a/src/daemon/base64.c
+++ b/src/daemon/base64.c
@@ -68,8 +68,9 @@ char* BASE64Decode(const char* src) {
68 /* Wrong base64 string length */ 68 /* Wrong base64 string length */
69 return NULL; 69 return NULL;
70 } 70 }
71 result = dest = (char*) malloc(in_len / 4 * 3 + 1); 71 result = dest = malloc(in_len / 4 * 3 + 1);
72 72 if (result == NULL)
73 return NULL; /* out of memory */
73 while (*src) { 74 while (*src) {
74 char a = base64_digits[(unsigned char)*(src++)]; 75 char a = base64_digits[(unsigned char)*(src++)];
75 char b = base64_digits[(unsigned char)*(src++)]; 76 char b = base64_digits[(unsigned char)*(src++)];