0, /* one shot (single session) */
"", /* no PDUs */
"", /* diagnostic output to stderr */
0, /* one shot (single session) */
"", /* no PDUs */
"", /* diagnostic output to stderr */
PROTO_Z3950, /* default application protocol */
900, /* idle timeout (seconds) */
64*1024*1024, /* maximum PDU size (approx.) to allow */
PROTO_Z3950, /* default application protocol */
900, /* idle timeout (seconds) */
64*1024*1024, /* maximum PDU size (approx.) to allow */
- strncpy(dst, src ? src : "", 127);
- dst[127] = '\0';
+ strncpy(dst, src ? src : "", BEND_NAME_MAX-1);
+ dst[BEND_NAME_MAX-1] = '\0';