Fix M17 callsign decoder sometimes causing crashes
This commit is contained in:
parent
9d141b8f93
commit
74f7912b4c
|
|
@ -98,7 +98,8 @@ std::string M17::decode_callsign(const call_t& encodedCall)
|
||||||
|
|
||||||
while(encoded)
|
while(encoded)
|
||||||
{
|
{
|
||||||
result[index++] = charMap[encoded % 40];
|
result.push_back(charMap[encoded % 40]);
|
||||||
|
index++;
|
||||||
encoded /= 40;
|
encoded /= 40;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue