diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-06-02 18:15:24 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-06-02 18:15:24 +0000 |
commit | 32b085da104290d60bbf4ae98ae9ad7a08abe57b (patch) | |
tree | 75b90c1463ea23a0342d0d0dd941008ec79f66bb /apps | |
parent | 2c58e4bbe62afc0f92b72ad09383172283f111bd (diff) |
Fix app_read to return string even if not # terminated (bug #1769)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3131 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rwxr-xr-x | apps/app_read.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_read.c b/apps/app_read.c index 3819afed1..4cba132aa 100755 --- a/apps/app_read.c +++ b/apps/app_read.c @@ -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); } |