From 30d3e59447f4215112291113c2fa0d162f26d67a Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Wed, 14 Mar 2012 00:27:31 +0000 Subject: [PATCH] Fix broken usage of sizeof() in res_adsi. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@359088 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- res/res_adsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/res/res_adsi.c b/res/res_adsi.c index 48c5ab59da..0235bea1a2 100644 --- a/res/res_adsi.c +++ b/res/res_adsi.c @@ -586,7 +586,7 @@ int AST_OPTIONAL_API_NAME(ast_adsi_read_encoded_dtmf)(struct ast_channel *chan, int bytes = 0, res, gotstar = 0, pos = 0; unsigned char current = 0; - memset(buf, 0, sizeof(buf)); + memset(buf, 0, maxlen); while (bytes <= maxlen) { /* Wait up to a second for a digit */ -- 2.47.2