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

Alexander Traud asteriskteam at digium.com
Thu Jun 7 07:20:54 CDT 2018


Alexander Traud has uploaded this change for review. ( https://gerrit.asterisk.org/9126


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(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/26/9126/1

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/9126
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I5a8e894f4924ef52e3094f6870656a559d67f3d7
Gerrit-Change-Number: 9126
Gerrit-PatchSet: 1
Gerrit-Owner: Alexander Traud <pabstraud at compuserve.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180607/216ac324/attachment.html>


More information about the asterisk-code-review mailing list