kopia lustrzana https://github.com/Guenael/rtlsdr-wsprd
Merge pull request #55 from Guenael/guenael
fix(wsprsim_utils.c): trying to fix a memory leak, issue #42pull/56/head
commit
53ad980989
|
@ -118,9 +118,9 @@ void pack_prefix(char *callsign, int32_t *n, int32_t *m, int32_t *nadd) {
|
|||
*m = 10 * (callsign[i1 + 1] - 48) + (callsign[i1 + 2] - 48);
|
||||
*m = 60000 + 26 + *m;
|
||||
} else {
|
||||
// three chars or more
|
||||
char *pfx = strtok(callsign, "/");
|
||||
call6 = strtok(pfx, " "); // FIXME-CHECK
|
||||
*n = pack_call(call6);
|
||||
*n = pack_call(strtok(NULL, " "));
|
||||
int plen = strlen(pfx);
|
||||
if (plen == 1) {
|
||||
*m = 36;
|
||||
|
|
Ładowanie…
Reference in New Issue