geomyidae

A small C-based gopherd. (gopher://bitreich.org/1/scm/geomyidae)
git clone git://r-36.net/geomyidae
Log | Files | Refs | README | LICENSE

commit 248e0a1c429fa0ce1f35103765e84175a9c7571e
parent 2b8f92e1e0d9383f3e78c687946a802ab3bdd57a
Author: Christoph Lohmann <20h@r-36.net>
Date:   Sat,  2 Apr 2022 20:09:58 +0200

Small style fix.

Diffstat:
main.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/main.c b/main.c @@ -228,9 +228,10 @@ handlerequest(int sock, char *req, int rlen, char *base, char *ohost, if (stat(path, &dir) != -1 && S_ISDIR(dir.st_mode)) { for (i = 0; i < sizeof(indexf)/sizeof(indexf[0]); i++) { if (strlen(path) + strlen(indexf[i]) >= sizeof(path)) { - if (loglvl & ERRORS) + if (loglvl & ERRORS) { logentry(clienth, clientp, recvc, "path truncation occurred"); + } return; } strncat(path, indexf[i], sizeof(path) - strlen(path) - 1);