fix harmless strncasecmp off-by-one

This commit is contained in:
Kamal Mostafa 2016-02-20 07:02:09 -08:00
parent bc794806db
commit 3a8d490074
1 changed files with 1 additions and 1 deletions

View File

@ -782,7 +782,7 @@ main( int argc, char*argv[] )
bfsk_n_data_bits = 5;
if ( bfsk_nstopbits < 0 )
bfsk_nstopbits = 1.5;
} else if ( strncasecmp(modem_mode, "tdd",3)==0 ) {
} else if ( strncasecmp(modem_mode, "tdd",4)==0 ) {
bfsk_databits_decode = databits_decode_baudot;
bfsk_databits_encode = databits_encode_baudot;
bfsk_data_rate = 45.45;