From 1dde5fdd6ccd067c1f4095f0d19ba5e4800530a2 Mon Sep 17 00:00:00 2001 From: Steven Franke Date: Tue, 25 Feb 2020 15:28:57 -0600 Subject: [PATCH] Fix a minor bug in the unpk_ routine that was introduced in the last commit. --- lib/wsprd/wsprd_utils.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/wsprd/wsprd_utils.c b/lib/wsprd/wsprd_utils.c index 77b4e76d8..5a1d49741 100644 --- a/lib/wsprd/wsprd_utils.c +++ b/lib/wsprd/wsprd_utils.c @@ -314,9 +314,7 @@ int unpk_(signed char *message, char *hashtab, char *loctab, char *call_loc_pow, // grid is only 4 chars even though this is a hashed callsign... // isalpha(grid6[4]) && isalpha(grid6[5]) ) ) { noprint=1; - } else { - strncpy(loctab+ihash*5,grid6,4); - } + } ihash=(n2-ntype-64)/128; if( strncmp(hashtab+ihash*13,"\0",1) != 0 ) {