@ -1872,7 +1872,7 @@ char *cleanstr (char *Text)
for (unsigned int x=0; x < strlen(Text); x++) {
if ((Text[x] > 0x1F) && (Text[x] < 0x7F)) {
if (Text[x] == '\'') {
strncat(cbuf, "\\", 1);
strcat(cbuf, "\\");
}
strncat(cbuf, &Text[x], 1);
@ -2475,8 +2475,6 @@ bool CQnetGateway::Init(char *cfgfile)
printf("Loaded voicemail file: %s for mod %d\n", vm[i].file, i);
// the repeater modules run on these ports
memset(&toRptr[i],0,sizeof(toRptr[i]));
memset(toRptr[i].saved_hdr.title, 0, 56);
toRptr[i].saved_addr.Initialize(af_family);
@ -1988,7 +1988,7 @@ void CQnetLink::Process()
// printf("Remote station %s %s requested version\n", inbound_ptr->call, ip);
buf[0] = 9;
strncpy((char *)buf + 4, LINK_VERSION, 4);
memcpy((char *)buf + 4, "1.00", 4);
buf[8] = 0;
sendto(ref_g2_sock, buf, 9, 0, (struct sockaddr *)&fromDst4, sizeof(struct sockaddr_in));
Powered by TurnKey Linux.