diff options
Diffstat (limited to 'channel.c')
-rwxr-xr-x | channel.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1753,8 +1753,8 @@ char *ast_recvtext(struct ast_channel *chan, int timeout) break; /* no frame */ 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 = ast_strndup((char *) f->data, f->datalen); /* dup and break */ + else if (f->frametype == AST_FRAME_TEXT) { /* what we want */ + buf = strndup((char *) f->data, f->datalen); /* dup and break */ done = 1; } ast_frfree(f); |