diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-09-02 13:52:58 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-09-02 13:52:58 +0000 |
commit | 3e967af0b5e94f37e4c5fbf5e72077dc2247789e (patch) | |
tree | 451ce4db20ae2807607ca099e3b4a61a78ca70e1 /app.c | |
parent | e5e591355aee52f232ea50c237ede7f58e8d394b (diff) |
Fix both app_read and underlying read issue (bug #2352)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3711 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'app.c')
-rwxr-xr-x | app.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -37,6 +37,8 @@ int ast_app_getdata(struct ast_channel *c, char *prompt, char *s, int maxlen, in { int res,to,fto; /* XXX Merge with full version? XXX */ + if (maxlen) + s[0] = '\0'; if (prompt) { res = ast_streamfile(c, prompt, c->language); if (res < 0) |