[Asterisk-code-review] ooh323c: GCC 8.1 warned about output truncated before termin... (asterisk[15])

Jenkins2 asteriskteam at digium.com
Thu Jun 7 16:14:09 CDT 2018


Jenkins2 has submitted this change and it was merged. ( https://gerrit.asterisk.org/9128 )

Change subject: ooh323c: GCC 8.1 warned about output truncated before terminating nul.
......................................................................

ooh323c: GCC 8.1 warned about output truncated before terminating nul.

ASTERISK-27901

Change-Id: I5a8e894f4924ef52e3094f6870656a559d67f3d7
---
M addons/ooh323c/src/ooCapability.c
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Matthew Fredrickson: Looks good to me, but someone else must approve
  George Joseph: Looks good to me, approved
  Jenkins2: Approved for Submit



diff --git a/addons/ooh323c/src/ooCapability.c b/addons/ooh323c/src/ooCapability.c
index 0796c46..45c82f9 100644
--- a/addons/ooh323c/src/ooCapability.c
+++ b/addons/ooh323c/src/ooCapability.c
@@ -812,7 +812,7 @@
          memFreePtr(pctxt, pATECap);
          return NULL;
       }
-      strncpy(events, "0-16", strlen("0-16"));
+      strcpy(events, "0-16");
       pATECap->audioTelephoneEvent = events;
       return pATECap;
    case OO_CAP_DTMF_CISCO:

-- 
To view, visit https://gerrit.asterisk.org/9128
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 15
Gerrit-MessageType: merged
Gerrit-Change-Id: I5a8e894f4924ef52e3094f6870656a559d67f3d7
Gerrit-Change-Number: 9128
Gerrit-PatchSet: 1
Gerrit-Owner: Alexander Traud <pabstraud at compuserve.com>
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Matthew Fredrickson <creslin at digium.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180607/c3bcb0bb/attachment-0001.html>


More information about the asterisk-code-review mailing list