diff options
author | Mark Spencer <markster@digium.com> | 2004-09-02 13:52:58 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2004-09-02 13:52:58 +0000 |
commit | b813a5f3faf0b154478ba44771f3fa6de19cd6c3 (patch) | |
tree | 451ce4db20ae2807607ca099e3b4a61a78ca70e1 /app.c | |
parent | d952c7ed71dd5a99a3007dec2ee1929d3e1e2748 (diff) |
Fix both app_read and underlying read issue (bug #2352)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3711 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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) |