]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[Q.921] Null terminate string buffer
authorStefan Knoblich <stkn@freeswitch.org>
Mon, 1 Sep 2008 17:25:40 +0000 (17:25 +0000)
committerStefan Knoblich <stkn@freeswitch.org>
Mon, 1 Sep 2008 17:25:40 +0000 (17:25 +0000)
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@525 a93c3328-9c30-0410-af19-c9cd2b2d52af

libs/openzap/src/isdn/Q921.c

index a682c2342ec689968fc0a2a890174f88fa1220c4..2c7c740251b6aa23c5e080acd65a1a30f0773a3a 100644 (file)
@@ -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));
 }