From: Stefan Knoblich Date: Mon, 1 Sep 2008 17:25:40 +0000 (+0000) Subject: [Q.921] Null terminate string buffer X-Git-Tag: v1.0.6~38^2~348 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd1bc3d4548393d0c1949ff1b137aa6b118a9d19;p=thirdparty%2Ffreeswitch.git [Q.921] Null terminate string buffer git-svn-id: http://svn.openzap.org/svn/openzap/trunk@525 a93c3328-9c30-0410-af19-c9cd2b2d52af --- diff --git a/libs/openzap/src/isdn/Q921.c b/libs/openzap/src/isdn/Q921.c index a682c2342e..2c7c740251 100644 --- a/libs/openzap/src/isdn/Q921.c +++ b/libs/openzap/src/isdn/Q921.c @@ -817,6 +817,8 @@ static int Q921LogMesg(L2TRUNK trunk, Q921LogLevel_t level, L2UCHAR received, L2 } out: + buf[sizeof(buf) - 1] = '\0'; + return trunk->Q921LogProc(trunk->PrivateDataLog, level, buf, strlen(buf)); }