aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-05-15 10:04:58 +0000
committerOmar Polo <op@omarpolo.com>2021-05-15 10:04:58 +0000
commit571d20fbb3653391fb9baf932c502f8b9ffe7d27 (patch)
treecfedf1703ef3b1017032b38bbd1a86812424f8c7
parent0773413c1d90a356493bc3b6f4ae3760a30ebf29 (diff)
fmt
-rw-r--r--server.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/server.c b/server.c
index 7bc783b..8216113 100644
--- a/server.c
+++ b/server.c
@@ -395,9 +395,11 @@ check_for_cgi(struct client *c)
end = strchr(path, '\0');
while (end > path) {
- /* go up one level. UNIX paths are simple and POSIX
- * dirname, with its ambiguities on if the given path
- * is changed or not, gives me headaches. */
+ /*
+ * go up one level. UNIX paths are simple and POSIX
+ * dirname, with its ambiguities on if the given
+ * pointer is changed or not, gives me headaches.
+ */
while (*end != '/')
end--;
*end = '\0';