Stef Epardaud <stef(a)lunatech.com> writes:
- return len + asso_values[str[2]] + asso_values[str[0]];
+ return len + asso_values[(int)str[2]] + asso_values[(int)str[0]];
}
This one is correct.
- int len;
+ int len=0;
int result_len;
/* read in "n/m:" (n=client fd, m=message length) */
This is just the compiler being stupid. If you want to fix better it
much better to rewrite the read-in loop to be more clear, using a do {
} while or a for loop.
I didn't look at the rest yet.
Jan