summaryrefslogtreecommitdiff
path: root/BBSHTMLConfig.c
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2025-02-03 22:19:01 +0000
committerDave Hibberd <hibby@debian.org>2025-02-03 22:19:01 +0000
commit488e218d34eaea6d5930cb14fcb77187450fb9df (patch)
tree992a75adf3a43b2d30406354fe50b546ca9d064a /BBSHTMLConfig.c
parent3efea8aa1044f8157c3ed4bdf03471feec934f9c (diff)
parent64d58d0c5a01551f8bfc52291986d1b8d681aca5 (diff)
Update upstream source from tag 'upstream/6.0.24.59a+repack'
Update to upstream version '6.0.24.59a+repack' with Debian dir 618298da94ae61a579ac668b172d2edb43c7666b
Diffstat (limited to 'BBSHTMLConfig.c')
-rw-r--r--BBSHTMLConfig.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/BBSHTMLConfig.c b/BBSHTMLConfig.c
index 3234c00..6207298 100644
--- a/BBSHTMLConfig.c
+++ b/BBSHTMLConfig.c
@@ -19,7 +19,7 @@ along with LinBPQ/BPQ32. If not, see http://www.gnu.org/licenses
#define _CRT_SECURE_NO_DEPRECATE
-#include "CHeaders.h"
+#include "cheaders.h"
#include "bpqmail.h"
#ifdef WIN32
@@ -2219,21 +2219,21 @@ VOID ProcessUserUpdate(struct HTTPConnectionInfo * Session, char * MsgPtr, char
ptr1 = GetNextParam(&ptr2); // Last Listed
USER->lastmsg = atoi(ptr1);
ptr1 = GetNextParam(&ptr2); // Name
- strcpy(USER->Name, ptr1);
+ memcpy(USER->Name, ptr1, 17);
ptr1 = GetNextParam(&ptr2); // Pass
- strcpy(USER->pass, ptr1);
+ memcpy(USER->pass, ptr1, 12);
ptr1 = GetNextParam(&ptr2); // CMS Pass
if (memcmp("****************", ptr1, strlen(ptr1) != 0))
{
- strcpy(USER->CMSPass, ptr1);
+ memcpy(USER->CMSPass, ptr1, 15);
}
ptr1 = GetNextParam(&ptr2); // QTH
- strcpy(USER->Address, ptr1);
+ memcpy(USER->Address, ptr1, 60);
ptr1 = GetNextParam(&ptr2); // ZIP
- strcpy(USER->ZIP, ptr1);
+ memcpy(USER->ZIP, ptr1, 8);
ptr1 = GetNextParam(&ptr2); // HomeBBS
- strcpy(USER->HomeBBS, ptr1);
+ memcpy(USER->HomeBBS, ptr1, 40);
_strupr(USER->HomeBBS);
SaveUserDatabase();
@@ -3038,13 +3038,10 @@ static DWORD WINAPI InstanceThread(LPVOID lpvParam)
const char * auth_header = "Authorization: Bearer ";
char * token_begin = strstr(MsgPtr, auth_header);
- int Flags = 0, n;
+ int Flags = 0;
// Node Flags isn't currently used
- char * Tok;
- char * param;
-
if (token_begin)
{
// Using Auth Header