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.