Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

It is better to have loved a short man than never to have loved a tall.


dovenet / Synchronet Programming / src/sbbs3/websrvr.c

SubjectAuthor
o src/sbbs3/websrvr.cRob Swindell (on Windows 11)

1
src/sbbs3/websrvr.c

<6625EB1E.49477.syncprog@vert.synchro.net>

  copy mid

https://www.rocksolidbbs.com/dovenet/article-flat.php?id=3490&group=DOVE-Net.Synchronet_Programming#3490

  copy link   Newsgroups: DOVE-Net.Synchronet_Programming
From: rob.swindell.(on.windows.11)@VERT (Rob Swindell (on Windows 11))
To: Git commit to main/sbbs/master
Subject: src/sbbs3/websrvr.c
Message-ID: <6625EB1E.49477.syncprog@vert.synchro.net>
Date: Sun, 21 Apr 2024 21:44:14 -0700
X-Comment-To: Git commit to main/sbbs/master
Path: rocksolidbbs.com!not-for-mail
Organization: Vertrauen
Newsgroups: DOVE-Net.Synchronet_Programming
X-FTN-PID: Synchronet 3.20a-Linux master/af28c04c2 Apr 10 202 GCC 12.2.0
X-FTN-MSGID: 49477.syncprog@1:103/705 2a8be263
X-FTN-CHRS: CP437 2
WhenImported: 20240421214414-0700 c1e0
WhenExported: 20240422000658-0700 c1e0
ExportedFrom: VERT syncprog 49477
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
 by: Rob Swindell (on Win - Mon, 22 Apr 2024 04:44 UTC

https://gitlab.synchro.net/main/sbbs/-/commit/920902f3db4c4eac5ebcaf57
Modified Files:
src/sbbs3/websrvr.c
Log Message:
Fix bug with error files (e.g. 404.html) introduced in commit 90de10cf

Deuce expanded the local 'error_code' buf to not trip the SAFECOPY macro
destionation buffer length check. Only this buffer needed to be 4 chars
exactly to truncate the 'message' string at 3 chars (e.g. just "404" for an
error message string that starts with "404 "). Switch from SAFECOPY to strlcpy
to eliminate this bug.

As reported by Ragnarok as part of issue #748

The web error files should work again.

---
■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor