[Q.921] Null terminate string buffer

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@525 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
Stefan Knoblich 2008-09-01 17:25:40 +00:00
parent 368899cf51
commit dd1bc3d454
1 changed files with 2 additions and 0 deletions

View 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));
}