diff --git a/src/protocol/gopher/gopher.c b/src/protocol/gopher/gopher.c index da76d37f..54bb2f6d 100644 --- a/src/protocol/gopher/gopher.c +++ b/src/protocol/gopher/gopher.c @@ -285,7 +285,8 @@ init_gopher_connection_info(struct connection *conn) /* Pick up gopher_entity */ if (selectorlen > 1 && selector[1] == '/') { entity = *selector++; - selectorlen--; + ++selector; + selectorlen -= 2; } /* This is probably a hack. It serves as a work around when no entity is