diff options
author | Steve Markgraf <steve@steve-m.de> | 2020-01-19 16:34:54 +0100 |
---|---|---|
committer | Steve Markgraf <steve@steve-m.de> | 2020-01-19 16:38:22 +0100 |
commit | d534cb69ade872bdf6acd6a9447573807c568977 (patch) | |
tree | 3052099a3d56bdcd28a9e732aca8239367327b0e /src/rds_mod.c | |
parent | c196faa0095530c126de8f585a944be18f79b104 (diff) | |
download | osmo-fl2k-d534cb69ade872bdf6acd6a9447573807c568977.tar.gz osmo-fl2k-d534cb69ade872bdf6acd6a9447573807c568977.tar.bz2 osmo-fl2k-d534cb69ade872bdf6acd6a9447573807c568977.zip |
fix compiler warnings
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
Diffstat (limited to 'src/rds_mod.c')
-rw-r--r-- | src/rds_mod.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 |