Fix compilation with astmm
[asterisk/asterisk.git] / channel.c
index 14c15a0..e804f7a 100644 (file)
--- 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);