mirror of
https://github.com/UzixLS/picocom.git
synced 2025-07-19 07:21:18 +03:00
Correct term_add() caller to match documentation
term_add() is documented only to return a negative on error, but term_set() was using the return value as an index into term[]. Because term_add() is going to change, correct term_set() by adding an explicit call to term_find() to get the index.
This commit is contained in:

committed by
Nick Patavalis

parent
93d52ad7bb
commit
5dd500996a