Use the ast_vasprintf macro instead of vasprintf directly.
authorSean Bright <sean@malleable.com>
Wed, 13 Aug 2008 14:22:47 +0000 (14:22 +0000)
committerSean Bright <sean@malleable.com>
Wed, 13 Aug 2008 14:22:47 +0000 (14:22 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@137403 65c4cc65-6c06-0410-ace0-fbb531ad65f3

cdr/cdr_tds.c

index 19de1db..cf17805 100644 (file)
@@ -276,7 +276,7 @@ static int execute_and_consume(DBPROCESS *dbproc, const char *fmt, ...)
        char *buffer;
 
        va_start(ap, fmt);
        char *buffer;
 
        va_start(ap, fmt);
-       if (vasprintf(&buffer, fmt, ap) < 0) {
+       if (ast_vasprintf(&buffer, fmt, ap) < 0) {
                va_end(ap);
                return 1;
        }
                va_end(ap);
                return 1;
        }