diff --git a/QnetDVRPTR.cpp b/QnetDVRPTR.cpp index ab8e793..7ee2d09 100644 --- a/QnetDVRPTR.cpp +++ b/QnetDVRPTR.cpp @@ -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); } diff --git a/QnetGateway.cpp b/QnetGateway.cpp index 5e9411c..a4c43dc 100644 --- a/QnetGateway.cpp +++ b/QnetGateway.cpp @@ -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); diff --git a/QnetLink.cpp b/QnetLink.cpp index bf9b9b1..269e3fd 100644 --- a/QnetLink.cpp +++ b/QnetLink.cpp @@ -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));