I've been going through with a few compile flags, hoping to add find some buffer overflows or memory leaks, etc. I'm getting a warning as such: I'm assuming that its saying that these characters are not a singular character long, but from what I understand, telnet codes like these are all 1 character? Maybe someone could explain what this means?
Quote:
65: warning: overflow in implicit constant conversion
comm.c:65: warning: overflow in implicit constant conversion
comm.c:66: warning: overflow in implicit constant conversion
comm.c:66: warning: overflow in implicit constant conversion
comm.c:67: warning: overflow in implicit constant conversion
comm.c:67: warning: overflow in implicit constant conversion
and here is the corresponding code:65: warning: overflow in implicit constant conversion
comm.c:65: warning: overflow in implicit constant conversion
comm.c:66: warning: overflow in implicit constant conversion
comm.c:66: warning: overflow in implicit constant conversion
comm.c:67: warning: overflow in implicit constant conversion
comm.c:67: warning: overflow in implicit constant conversion
const char echo_off_str[] = { IAC, WILL, TELOPT_ECHO, '\0' };
const char echo_on_str[] = { IAC, WONT, TELOPT_ECHO, '\0' };
const char go_ahead_str[] = { IAC, GA, '\0' };