Closed digitalcircuit closed 4 years ago
PR_SCANFMT
NOTE: As I have not (yet) set up an OpenWRT build environment, this is not tested.
Include whitespace when reading protocol names via fscanf() by including all characters except for a newline, still limited to 32 bytes.
This fixes the new protocols added in a recent commit which include spaces in the names, and it allows for more flexibility in general.
NOTE: This change has not been personally tested and may need further modifications.
In short
PR_SCANFMT
to not skip whitespace in protocol namesNOTE: As I have not (yet) set up an OpenWRT build environment, this is not tested.
Details
Include whitespace when reading protocol names via fscanf() by including all characters except for a newline, still limited to 32 bytes.
This fixes the new protocols added in a recent commit which include spaces in the names, and it allows for more flexibility in general.
References
NOTE: This change has not been personally tested and may need further modifications.