Fix app_read to return string even if not # terminated (bug #1769)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3131 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
b6beb440cd
commit
37ae3cd701
|
@ -86,7 +86,7 @@ static int read_exec(struct ast_channel *chan, void *data)
|
|||
if (!res) {
|
||||
ast_stopstream(chan);
|
||||
res = ast_app_getdata(chan, filename, tmp, maxdigits, 0);
|
||||
if (!res)
|
||||
if (res > -1)
|
||||
pbx_builtin_setvar_helper(chan, varname, tmp);
|
||||
ast_verbose(VERBOSE_PREFIX_3 "User entered '%s'\n", tmp);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue