[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:
parent
07c3d64266
commit
31edae1ab5
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue