The command string "lss_activate_bitrate" is exactly 20 characters. CO_fifo_readToken() is called with count=sizeof(tok)=20. When exactly 20 characters are read, tokenSize==count which triggers the overflow guard: *err=true and the token is discarded. The command therefore always fails with a syntax error. The buffer needs at least 21 bytes (20 chars + null terminator) to successfully parse this command. Fixes #623. |
||
|---|---|---|
| .. | ||
| CO_gateway_ascii.c | ||
| CO_gateway_ascii.h | ||