phroxy

Gopher to HTTP proxy
git clone git://git.z3bra.org/phroxy.git
Log | Files | Refs | LICENSE

commit 60dbd05fe2fc35874ea32542f3849507f2787ce3
parent c9369fcdaa399b0f9ae97611a023837e72f7e3c3
Author: Willy Goiffon <dev@z3bra.org>
Date:   Thu, 22 Oct 2020 15:47:24 +0200

Fix off-by-one error in search queries

Diffstat:
Mphroxy.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/phroxy.c b/phroxy.c @@ -113,7 +113,7 @@ sendselector(int sock, const char *selector, const char *search) ln = strlen(selector) + 3; if (search) { fmt = "%s\t%s\r\n"; - ln += strlen(search); + ln += strlen(search) + 1; } msg = p = malloc(ln); @@ -463,7 +463,6 @@ phroxy(char *url) if((srch = strchr(path, '?'))) { *srch = '\0'; srch += 3; /* go past "?q=" in URL, to fetch actual query */ - fprintf(stderr, "Search: %s\n", urldec(srch)); } if ((sock = connectto(host, port)) < 0) {