Buffer overflow.
{ if ( liquid < 0 && liquid >= LIQ_MAX ) } is always false.
Non-boolean values assigned to boolean variable telnet_state.
%d format specifier expects signed types.
{ if ( kier >= 0 || kier <= 9 ) } is always true.
Value assigned to a variable twice.
Calling sprintf where source and destination overlap causes undefined behavior.
Overflowing a signed int causes undefined behavior. The hack depends on the type being exactly 32-bit wide and int may be wider.
Merge pull request #4 from 1500100900/RC1

Minor bug fixes