ooh323c: GCC 8.1 warned about output truncated before terminating nul.
authorAlexander Traud <pabstraud@compuserve.com>
Thu, 7 Jun 2018 12:19:39 +0000 (14:19 +0200)
committerAlexander Traud <pabstraud@compuserve.com>
Thu, 7 Jun 2018 12:19:39 +0000 (14:19 +0200)
ASTERISK-27901

Change-Id: I5a8e894f4924ef52e3094f6870656a559d67f3d7

addons/ooh323c/src/ooCapability.c

index 0796c46..45c82f9 100644 (file)
@@ -812,7 +812,7 @@ void* ooCapabilityCreateDTMFCapability(int cap, int dtmfcodec, OOCTXT *pctxt)
          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: