projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b6beb44
)
Fix app_read to return string even if not # terminated (bug #1769)
author
Mark Spencer
<markster@digium.com>
Wed, 2 Jun 2004 18:15:24 +0000
(18:15 +0000)
committer
Mark Spencer
<markster@digium.com>
Wed, 2 Jun 2004 18:15:24 +0000
(18:15 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3131
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
apps/app_read.c
patch
|
blob
|
history
diff --git
a/apps/app_read.c
b/apps/app_read.c
index
3819afe
..
4cba132
100755
(executable)
--- 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) {
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);
}
pbx_builtin_setvar_helper(chan, varname, tmp);
ast_verbose(VERBOSE_PREFIX_3 "User entered '%s'\n", tmp);
}