Introduction
Introduction Statistics Contact Development Disclaimer Help
Small style fix. - geomyidae - A small C-based gopherd.
git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfri…
Log
Files
Refs
Tags
README
LICENSE
---
commit 248e0a1c429fa0ce1f35103765e84175a9c7571e
parent 2b8f92e1e0d9383f3e78c687946a802ab3bdd57a
Author: Christoph Lohmann <[email protected]>
Date: Sat, 2 Apr 2022 20:09:58 +0200
Small style fix.
Diffstat:
M 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, c…
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) -…
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.