summaryrefslogtreecommitdiff
path: root/lib/wsprd/wsprsim.c
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2020-05-11 22:17:58 +0200
committerChristoph Berg <myon@debian.org>2020-05-11 22:17:58 +0200
commit32a41b1abe1a4aab0892c9c2051be6ba5b379f1e (patch)
treec6e107c1ee4d70610e43a7912e57c720334a08c7 /lib/wsprd/wsprsim.c
parent08299e8b2bf50ba90daf570f57def529dd29d6e7 (diff)
New upstream version 2.2.0~rc1+repackupstream/2.2.0_rc1+repack
Diffstat (limited to 'lib/wsprd/wsprsim.c')
-rw-r--r--lib/wsprd/wsprsim.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/wsprd/wsprsim.c b/lib/wsprd/wsprsim.c
index b3af9980..f6633c1c 100644
--- a/lib/wsprd/wsprsim.c
+++ b/lib/wsprd/wsprsim.c
@@ -128,10 +128,12 @@ int main(int argc, char *argv[])
int i, c, printchannel=0, writec2=0;
float snr=50.0;
float f0=0.0, t0=1.0;
- char *message, *c2filename, *hashtab;
+ char *message, *c2filename, *hashtab, *loctab;
c2filename=malloc(sizeof(char)*15);
hashtab=malloc(sizeof(char)*32768*13);
+ loctab=malloc(sizeof(char)*32768*5);
memset(hashtab,0,sizeof(char)*32768*13);
+ memset(hashtab,0,sizeof(char)*32768*5);
// message length is 22 characters
message=malloc(sizeof(char)*23);
@@ -150,6 +152,7 @@ int main(int argc, char *argv[])
break;
case 'f':
f0 = atof(optarg);
+ break;
case 'o':
c2filename = optarg;
writec2=1;
@@ -169,7 +172,7 @@ int main(int argc, char *argv[])
}
unsigned char channel_symbols[162];
- get_wspr_channel_symbols(message, hashtab, channel_symbols);
+ get_wspr_channel_symbols(message, hashtab, loctab, channel_symbols);
if( printchannel ) {
printf("Channel symbols:\n");