fix an error in ichat.c:120 and change FRAME_SIZE into MSG_LEN