mirror of
https://github.com/g4klx/DMRGateway.git
synced 2026-04-21 06:13:47 +00:00
Fix off-by-one buffer size in DynVoice::linkedTo
The sprintf buffer for formatting an unsigned int TG number was 10 bytes, but the maximum representation (4294967295) requires 11 bytes including the null terminator.
This commit is contained in:
parent
65eaf779b0
commit
0345e24f55
1 changed files with 1 additions and 1 deletions
|
|
@ -137,7 +137,7 @@ bool CDynVoice::open()
|
|||
|
||||
void CDynVoice::linkedTo(unsigned int number)
|
||||
{
|
||||
char letters[10U];
|
||||
char letters[11U];
|
||||
::sprintf(letters, "%u", number);
|
||||
|
||||
std::vector<std::string> words;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue