mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-03-30 16:08:35 -04:00
Don't use "appendage" ~ or ! on decoded lines. Protect against bad read in genft8_174_91.
This commit is contained in:
parent
ed791f26dd
commit
ca2c1a2b8b
@ -192,7 +192,7 @@ QString DisplayText::appendWorkedB4(QString message, QString const& callsign, QS
|
||||
|
||||
if (!countryWorkedBefore) {
|
||||
// therefore not worked call either
|
||||
appendage += "!";
|
||||
// appendage += "!";
|
||||
*bg = m_color_DXCC;
|
||||
} else {
|
||||
if(!countryB4onBand) {
|
||||
@ -206,14 +206,14 @@ QString DisplayText::appendWorkedB4(QString message, QString const& callsign, QS
|
||||
} else {
|
||||
if (!callWorkedBefore) {
|
||||
// but have worked the country
|
||||
appendage += "~";
|
||||
// appendage += "~";
|
||||
*bg = m_color_NewCall;
|
||||
} else {
|
||||
if(!callB4onBand) {
|
||||
appendage += "~";
|
||||
// appendage += "~";
|
||||
*bg = m_color_NewCallBand;
|
||||
} else {
|
||||
appendage += " "; // have worked this call before
|
||||
// appendage += " "; // have worked this call before
|
||||
*bg = m_color_CQ;
|
||||
}
|
||||
}
|
||||
|
@ -16,8 +16,10 @@ subroutine genft8_174_91(msg,i3,n3,msgsent,msgbits,itone)
|
||||
call pack77(msg,i3,n3,c77)
|
||||
call unpack77(c77,msgsent)
|
||||
|
||||
read(c77,'(77i1)') msgbits
|
||||
call encode174_91(msgbits,codeword) !Encode the test message
|
||||
read(c77,'(77i1)',err=1) msgbits
|
||||
go to 2
|
||||
1 write(81,*) msg,c77 ; flush(81)
|
||||
2 call encode174_91(msgbits,codeword) !Encode the test message
|
||||
|
||||
! Message structure: S7 D29 S7 D29 S7
|
||||
itone(1:7)=icos7
|
||||
|
Loading…
Reference in New Issue
Block a user