diff --git a/main/strcompat.c b/main/strcompat.c index 912f64dea2af588cbaa6c39b7e9d0e2965959b86..dbad22b75777fde28f0a29656dfa83dca86e494b 100644 --- a/main/strcompat.c +++ b/main/strcompat.c @@ -141,7 +141,7 @@ size_t strnlen(const char *s, size_t n) char *strndup(const char *s, size_t n) { size_t len = strnlen(s, n); - char *new = ast_malloc(len + 1); + char *new = malloc(len + 1); if (!new) return NULL; @@ -162,7 +162,7 @@ int vasprintf(char **strp, const char *fmt, va_list ap) va_copy(ap2, ap); size = vsnprintf(&s, 1, fmt, ap2); va_end(ap2); - *strp = ast_malloc(size + 1); + *strp = malloc(size + 1); if (!*strp) return -1; vsnprintf(*strp, size + 1, fmt, ap);