mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-21 06:13:49 +00:00
Merge pull request #776 from f1rmb/fix_TA_memcpy_src_overflow
Fix memcpy overflow, as src and dest are 32 bytes long, only 31 bytes has to be copied, not 32, since an offset is applied to src.
This commit is contained in:
commit
b02560ccbc
1 changed files with 1 additions and 1 deletions
|
|
@ -98,7 +98,7 @@ bool CDMRTA::decodeTA()
|
|||
|
||||
case 1U: // ISO 8 bit
|
||||
case 2U: // UTF8
|
||||
::memcpy(m_ta, m_buf + 1U, sizeof(m_ta));
|
||||
::memcpy(m_ta, m_buf + 1U, sizeof(m_ta) - 1);
|
||||
break;
|
||||
|
||||
case 3U: { // UTF16 poor man's conversion
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue