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

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


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


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/22/19422/1

diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c
index e7da9b4..d59d26e 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/+/19422
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 16
Gerrit-Change-Id: I983a423c0214641ca4f8c9dfe0b19c47448fdee1
Gerrit-Change-Number: 19422
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/ca456886/attachment.html>


More information about the asterisk-code-review mailing list