diff --git a/src/util.c b/src/util.c index 74a0c76d..222365d2 100644 --- a/src/util.c +++ b/src/util.c @@ -304,6 +304,7 @@ char *util_base64_encode(char *data) data += chunk; len -= chunk; } + *out = 0; return result; }