Prevent buffer overflow, remove unused

This commit is contained in:
Holger Vogt 2023-08-13 11:31:01 +02:00
parent 43c7d5061c
commit 9ee9f9262b
1 changed files with 1 additions and 4 deletions

View File

@ -155,9 +155,6 @@ void cm_pwlts(ARGS) /* structure holding parms,
double test1; /* debug testing value */
double test2; /* debug testing value */
double *last_x_value; /* static variable for limiting */
double test; /* temp storage variable for limit testing */
Mif_Complex_t ac_gain;
CALLBACK = cm_pwlts_callback;
@ -283,7 +280,7 @@ void cm_pwlts(ARGS) /* structure holding parms,
/*** must determine position progressively & then ***/
/*** calculate required output. ***/
for (i=1; i<size; i++) {
for (i = 1; i < size - 1; i++) {
if (x_input < (x[i] + x[i+1])/2.0) {
/* approximate position known... */