From d534cb69ade872bdf6acd6a9447573807c568977 Mon Sep 17 00:00:00 2001 From: Steve Markgraf Date: Sun, 19 Jan 2020 16:34:54 +0100 Subject: fix compiler warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit warning: absolute value function ‘fabsf’ given an argument of type ‘double’ but has parameter of type ‘float’ which may cause truncation of value warning: ‘__builtin_strncpy’ specified bound 64 equals destination size --- src/rds_mod.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rds_mod.c') diff --git a/src/rds_mod.c b/src/rds_mod.c index 8e31b0d..687aa65 100644 --- a/src/rds_mod.c +++ b/src/rds_mod.c @@ -38,8 +38,8 @@ extern double waveform_biphase[576]; struct { uint16_t pi; int ta; - char ps[PS_LENGTH]; - char rt[RT_LENGTH]; + char ps[PS_LENGTH+1]; + char rt[RT_LENGTH+1]; } rds_params = { 0 }; /* The RDS error-detection code generator polynomial is -- cgit v1.2.3