kopia lustrzana https://github.com/Guenael/rtlsdr-wsprd
Merge pull request #136 from krasoffski/fix_zero_padding_for_pwr
Fix whitespace padding for PWRmain
commit
17502db2f3
|
@ -263,7 +263,7 @@ int unpk_(signed char *message, char *hashtab, char *loctab, char *call_loc_pow,
|
||||||
if (nu == 0 || nu == 3 || nu == 7) {
|
if (nu == 0 || nu == 3 || nu == 7) {
|
||||||
ndbm = ntype;
|
ndbm = ntype;
|
||||||
memset(call_loc_pow, 0, sizeof(char) * 23);
|
memset(call_loc_pow, 0, sizeof(char) * 23);
|
||||||
sprintf(cdbm, "%2d", ndbm);
|
sprintf(cdbm, "%02d", ndbm);
|
||||||
strncat(call_loc_pow, callsign, strlen(callsign));
|
strncat(call_loc_pow, callsign, strlen(callsign));
|
||||||
strncat(call_loc_pow, " ", 1);
|
strncat(call_loc_pow, " ", 1);
|
||||||
strncat(call_loc_pow, grid, 4);
|
strncat(call_loc_pow, grid, 4);
|
||||||
|
|
Ładowanie…
Reference in New Issue