From 8b4f91ed8bb71bd6487ce07b295774f2c482e593 Mon Sep 17 00:00:00 2001 From: lwvmobile Date: Thu, 13 Oct 2022 14:18:05 -0400 Subject: [PATCH] char * pEnd build bugfix; --- src/dsd_main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/dsd_main.c b/src/dsd_main.c index 091723c..619c3e4 100644 --- a/src/dsd_main.c +++ b/src/dsd_main.c @@ -71,6 +71,8 @@ struct stat st = {0}; char wav_file_directory[1024] = {0}; unsigned long long int p2vars = 0; +char * pEnd; //bugfix + void noCarrier (dsd_opts * opts, dsd_state * state) { @@ -1061,7 +1063,7 @@ main (int argc, char **argv) case 'H': //new handling for 10/32/64 Char Key - char * pEnd; + strncpy(opts.szNumbers, optarg, 1023); opts.szNumbers[1023] = '\0'; state.K1 = strtoull (opts.szNumbers, &pEnd, 16);