aboutsummaryrefslogtreecommitdiffstats
path: root/main/strcompat.c
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-07 08:43:59 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-07 08:43:59 +0000
commit47d70f76749857d3820374d8df0edbe6d79b3e86 (patch)
treeab95c67606e2668839adafb8ccb33484ebf5f93a /main/strcompat.c
parent0b0739e25445c00619208839509527b53567a6cd (diff)
Reverting part of #67864 to be able to compile agi/eagi-test that relies on this without having
ast_log and other asterisk api functions available - I could not compile on OS/X without reverting this. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@67991 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/strcompat.c')
-rw-r--r--main/strcompat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/strcompat.c b/main/strcompat.c
index 912f64dea..dbad22b75 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);