MAXMSGLEN
char bufr[MAXMSGLEN];
smax = str + MAXMSGLEN - 1;
char ack, ibuf[MAXMSGLEN];
#ifndef MAXMSGLEN
char scerror_msg[MAXMSGLEN];