[Asterisk-code-review] chan_dahdi: Resolve format truncation warning. (asterisk[19])

N A asteriskteam at digium.com
Wed Oct 5 07:48:29 CDT 2022


N A has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/19424 )


Change subject: chan_dahdi: Resolve format truncation warning.
......................................................................

chan_dahdi: Resolve format truncation warning.

Fixes a format truncation warning in notify_message.

ASTERISK-30256 #close

Change-Id: I983a423c0214641ca4f8c9dfe0b19c47448fdee1
---
M channels/chan_dahdi.c
1 file changed, 14 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/24/19424/1

diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c
index b829aa4..e952796 100644
--- a/channels/chan_dahdi.c
+++ b/channels/chan_dahdi.c
@@ -3447,7 +3447,7 @@
  */
 static void notify_message(char *mailbox, int thereornot)
 {
-	char s[sizeof(mwimonitornotify) + 80];
+	char s[sizeof(mwimonitornotify) + 164];
 
 	if (ast_strlen_zero(mailbox)) {
 		return;

-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/19424
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 19
Gerrit-Change-Id: I983a423c0214641ca4f8c9dfe0b19c47448fdee1
Gerrit-Change-Number: 19424
Gerrit-PatchSet: 1
Gerrit-Owner: N A <mail at interlinked.x10host.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20221005/09ca3080/attachment.html>


More information about the asterisk-code-review mailing list