[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
368899cf51
commit
dd1bc3d454
|
@ -817,6 +817,8 @@ static int Q921LogMesg(L2TRUNK trunk, Q921LogLevel_t level, L2UCHAR received, L2
|
||||||
}
|
}
|
||||||
|
|
||||||
out:
|
out:
|
||||||
|
buf[sizeof(buf) - 1] = '\0';
|
||||||
|
|
||||||
return trunk->Q921LogProc(trunk->PrivateDataLog, level, buf, strlen(buf));
|
return trunk->Q921LogProc(trunk->PrivateDataLog, level, buf, strlen(buf));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue