From: Olle Johansson Date: Mon, 6 Mar 2006 11:02:12 +0000 (+0000) Subject: Fix compilation with astmm X-Git-Tag: 1.4.0-beta1~2482 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1bda384bb8d2cb7a5616f2267f11972cb543aa0b;p=thirdparty%2Fasterisk.git Fix compilation with astmm git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12025 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channel.c b/channel.c index 14c15a0fe0..e804f7ae96 100644 --- a/channel.c +++ b/channel.c @@ -2122,7 +2122,7 @@ char *ast_recvtext(struct ast_channel *chan, int timeout) if (f->frametype == AST_FRAME_CONTROL && f->subclass == AST_CONTROL_HANGUP) done = 1; /* force a break */ else if (f->frametype == AST_FRAME_TEXT) { /* what we want */ - buf = strndup((char *) f->data, f->datalen); /* dup and break */ + buf = ast_strndup((char *) f->data, f->datalen); /* dup and break */ done = 1; } ast_frfree(f);