[asterisk-commits] oej: trunk r67991 - /trunk/main/strcompat.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Thu Jun 7 01:44:13 MST 2007
Author: oej
Date: Thu Jun 7 03:43:59 2007
New Revision: 67991
URL: http://svn.digium.com/view/asterisk?view=rev&rev=67991
Log:
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.
Modified:
trunk/main/strcompat.c
Modified: trunk/main/strcompat.c
URL: http://svn.digium.com/view/asterisk/trunk/main/strcompat.c?view=diff&rev=67991&r1=67990&r2=67991
==============================================================================
--- trunk/main/strcompat.c (original)
+++ trunk/main/strcompat.c Thu Jun 7 03:43:59 2007
@@ -141,7 +141,7 @@
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 @@
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);
More information about the asterisk-commits
mailing list