diff options
| author | Dave Hibberd <hibby@debian.org> | 2025-02-03 22:18:58 +0000 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2025-02-03 22:18:58 +0000 |
| commit | 64d58d0c5a01551f8bfc52291986d1b8d681aca5 (patch) | |
| tree | 4f846e63762be51699156e460c79be53d8045521 /BBSHTMLConfig.c | |
| parent | a5c4d344ccf55a47fd6bc91a327073915b6c281e (diff) | |
New upstream version 6.0.24.59a+repackupstream/6.0.24.59a+repack
Diffstat (limited to 'BBSHTMLConfig.c')
| -rw-r--r-- | BBSHTMLConfig.c | 19 |
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
|
