mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-08 08:51:50 +00:00
[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:
|
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…
x
Reference in New Issue
Block a user