diff --git a/main/utils.c b/main/utils.c index 25de47ef3d..653c31312b 100644 --- a/main/utils.c +++ b/main/utils.c @@ -352,9 +352,6 @@ int ast_base64decode(unsigned char *dst, const char *src, int max) cnt++; } } - if (cnt == max) - dst--; - *dst = '\0'; /* Dont worry about left over bits, they're extra anyway */ return cnt; }