diff --git a/APRSCode.c b/APRSCode.c index 4cdcd60..ff1c8c8 100644 --- a/APRSCode.c +++ b/APRSCode.c @@ -8168,6 +8168,8 @@ VOID APRSCMD(TRANSPORTENTRY * Session, char * Bufferptr, char * CmdTail, CMDX * else Bufferptr = Cmdprintf(Session, Bufferptr, "but not connected\r"); } + + SendCommandReply(Session, REPLYBUFFER, (int)(Bufferptr - (char *)REPLYBUFFER)); return; } diff --git a/BBSHTMLConfig.c b/BBSHTMLConfig.c index 69899ac..b4c2f8e 100644 --- a/BBSHTMLConfig.c +++ b/BBSHTMLConfig.c @@ -398,7 +398,7 @@ int SendHeader(char * Reply, char * Key) } -void ConvertTitletoUTF8(char * Title, char * UTF8Title) +void ConvertTitletoUTF8(char * Title, char * UTF8Title, int Len) { if (WebIsUTF8(Title, (int)strlen(Title)) == FALSE) { @@ -414,7 +414,7 @@ void ConvertTitletoUTF8(char * Title, char * UTF8Title) wlen = MultiByteToWideChar(CP_ACP, 0, Title, len, BufferW, origlen * 2); len = WideCharToMultiByte(CP_UTF8, 0, BufferW, wlen, UTF8Title, origlen * 2, NULL, NULL); #else - int left = 2 * strlen(Title); + int left = Len - 1; int len = origlen; iconv_t * icu = NULL; diff --git a/CBPQ32.vcproj b/CBPQ32.vcproj index 00bdf96..079862a 100644 --- a/CBPQ32.vcproj +++ b/CBPQ32.vcproj @@ -180,7 +180,7 @@ Call, User->flags & F_SYSOP)) { - char UTF8Title[128]; + char UTF8Title[256]; char * EncodedTitle; // List if it is the right type and in the page range we want @@ -934,7 +934,7 @@ int SendWebMailHeaderEx(char * Reply, char * Key, struct HTTPConnectionInfo * Se EncodedTitle = doXMLTransparency(Msg->title); - ConvertTitletoUTF8(EncodedTitle, UTF8Title); + ConvertTitletoUTF8(EncodedTitle, UTF8Title, 256); free(EncodedTitle); @@ -971,7 +971,7 @@ int ViewWebMailMessage(struct HTTPConnectionInfo * Session, char * Reply, int Nu int msgLen; char FullTo[100]; - char UTF8Title[128]; + char UTF8Title[256]; int Index; char * crcrptr; char DownLoad[256] = ""; @@ -1009,7 +1009,7 @@ int ViewWebMailMessage(struct HTTPConnectionInfo * Session, char * Reply, int Nu // make sure title is UTF 8 encoded - ConvertTitletoUTF8(Msg->title, UTF8Title); + ConvertTitletoUTF8(Msg->title, UTF8Title, 256); // if a B2 message diplay B2 Header instead of a locally generated one @@ -6098,7 +6098,7 @@ int ProcessWebmailWebSock(char * MsgPtr, char * OutBuffer) if (Msg && CheckUserMsg(Msg, User->Call, User->flags & F_SYSOP)) { - char UTF8Title[128]; + char UTF8Title[4096]; char * EncodedTitle; // List if it is the right type and in the page range we want @@ -6126,7 +6126,7 @@ int ProcessWebmailWebSock(char * MsgPtr, char * OutBuffer) EncodedTitle = doXMLTransparency(Msg->title); - ConvertTitletoUTF8(EncodedTitle, UTF8Title); + ConvertTitletoUTF8(EncodedTitle, UTF8Title, 4096); free(EncodedTitle); diff --git a/bpqchat.c b/bpqchat.c index 3e0444a..06fb369 100644 --- a/bpqchat.c +++ b/bpqchat.c @@ -70,6 +70,9 @@ // Allow /History to be shortened to /Hi (45) // Fix extra r charater in Chat Config Web Page + +// Increase sise of status display buffers (7) + #include "BPQChat.h" #include "Dbghelp.h"