Fix error handling in termo_strfkey()

If in any case snprintf() returned a negative value,
we would mishandle it.
This commit is contained in:
p
2015-10-31 00:00:30 +01:00
parent 2a351b150d
commit ef29b7587d
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -5,6 +5,7 @@ termo
input. ncurses does a really terrible job at that, mainly wrt. mouse support
which seems to be utterly broken. If you can drag things in a terminal
application, such as in VIM, I can assure you it's not using ncurses for that.
(At least not with ncurses older than 6.0.)
Since terminal I/O is really complicated and full of special cases, this project
doesn't aspire to also replace the output part of ncurses, but is rather