mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-17 09:31:59 -05:00
Fix a wsprd bug that was introduced in r7090, which attempted to fix encoding of callsigns like 5N/6O0O.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@7391 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
74bfc17ebd
commit
794e6ada00
@ -301,7 +301,8 @@ int unpk_(signed char *message, char *hashtab, char *call_loc_pow, char *callsig
|
||||
} else if ( ntype < 0 ) {
|
||||
ndbm=-(ntype+1);
|
||||
memset(grid6,0,sizeof(char)*7);
|
||||
size_t len=strlen(callsign);
|
||||
// size_t len=strlen(callsign);
|
||||
size_t len=6;
|
||||
strncat(grid6,callsign+len-1,1);
|
||||
strncat(grid6,callsign,len-1);
|
||||
int nu=ndbm%10;
|
||||
|
@ -59,8 +59,9 @@ long unsigned int pack_call(char *callsign) {
|
||||
}
|
||||
}
|
||||
} else if( isdigit(*(callsign+1)) ) {
|
||||
for (i=0; i<call_len; i++) {
|
||||
if( i==0 || callsign[i-1]==0 ) {
|
||||
call6[0]=32;
|
||||
for (i=1; i<call_len+1; i++) {
|
||||
if( callsign[i-1]==0 ) {
|
||||
call6[i]=32;
|
||||
} else {
|
||||
call6[i]=*(callsign+i-1);
|
||||
|
Loading…
Reference in New Issue
Block a user