From 41c3485add0931e1388245cc81f0301386c2a0c3 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Sun, 12 May 2019 22:16:48 +0200 Subject: [PATCH] Revert "[gopher] Skip '/'. Refs #33" This reverts commit 5106b31f6c67e180a24e49b83c640e350cff777b. --- src/protocol/gopher/gopher.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/protocol/gopher/gopher.c b/src/protocol/gopher/gopher.c index 54bb2f6d4..da76d37f8 100644 --- a/src/protocol/gopher/gopher.c +++ b/src/protocol/gopher/gopher.c @@ -285,8 +285,7 @@ init_gopher_connection_info(struct connection *conn) /* Pick up gopher_entity */ if (selectorlen > 1 && selector[1] == '/') { entity = *selector++; - ++selector; - selectorlen -= 2; + selectorlen--; } /* This is probably a hack. It serves as a work around when no entity is