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

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


Alexander Traud has uploaded this change for review. ( 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(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/28/9128/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/9128
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 15
Gerrit-MessageType: newchange
Gerrit-Change-Id: I5a8e894f4924ef52e3094f6870656a559d67f3d7
Gerrit-Change-Number: 9128
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/4beb2800/attachment-0001.html>


More information about the asterisk-code-review mailing list