diff --git a/main/utils.c b/main/utils.c index c4abd0f372..fe9ee3cffa 100644 --- a/main/utils.c +++ b/main/utils.c @@ -347,9 +347,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; }