diff options
| author | Christoph Berg <myon@debian.org> | 2021-01-26 21:21:31 +0100 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2021-01-26 21:21:31 +0100 |
| commit | df7e39f535903b195968c44a883bd43b672f9cfd (patch) | |
| tree | 3a4e846b4487ba5066db2bcc5952913bacc0c83a /lib | |
| parent | f8dfdd59917f3f95a630860e3d91f7d865a8ee40 (diff) | |
| parent | 1c1cf517cea41515f4123691f571b038a53c700b (diff) | |
Update upstream source from tag 'upstream/2.3.0_rc4+repack'
Update to upstream version '2.3.0~rc4+repack'
with Debian dir 83f754ec9af8986a79027da8b2f731f3703c50cb
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/wsprd/wsprd.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/wsprd/wsprd.c b/lib/wsprd/wsprd.c index 8ef66fd1..eea667eb 100644 --- a/lib/wsprd/wsprd.c +++ b/lib/wsprd/wsprd.c @@ -738,7 +738,7 @@ int main(int argc, char *argv[]) signed char message[]={-9,13,-35,123,57,-39,64,0,0,0,0}; char *callsign, *grid, *call_loc_pow; char *ptr_to_infile,*ptr_to_infile_suffix; - char *data_dir=NULL; + char *data_dir="."; char wisdom_fname[200],all_fname[200],spots_fname[200]; char timer_fname[200],hash_fname[200]; char uttime[5],date[7]; @@ -905,11 +905,11 @@ int main(int argc, char *argv[]) strcpy(timer_fname,"."); strcpy(hash_fname,"."); if(data_dir != NULL) { - strcpy(wisdom_fname,data_dir); - strcpy(all_fname,data_dir); - strcpy(spots_fname,data_dir); - strcpy(timer_fname,data_dir); - strcpy(hash_fname,data_dir); + strncpy(wisdom_fname,data_dir, sizeof wisdom_fname); + strncpy(all_fname,data_dir, sizeof all_fname); + strncpy(spots_fname,data_dir, sizeof spots_fname); + strncpy(timer_fname,data_dir, sizeof timer_fname); + strncpy(hash_fname,data_dir, sizeof hash_fname); } strncat(wisdom_fname,"/wspr_wisdom.dat",20); strncat(all_fname,"/ALL_WSPR.TXT",20); |
