diff --git a/lib/gopher.c b/lib/gopher.c index 2fab6dabe..6fe740f75 100644 --- a/lib/gopher.c +++ b/lib/gopher.c @@ -76,6 +76,8 @@ #include "strequal.h" #include "gopher.h" #include "rawstr.h" +#include "select.h" +#include "url.h" #define _MPRINTF_REPLACE /* use our functions only */ #include @@ -122,6 +124,7 @@ static CURLcode gopher_do(struct connectdata *conn, bool *done) curl_off_t *bytecount = &data->req.bytecount; char *path = data->state.path; char *sel; + char *sel_org = NULL; ssize_t amount, k; *done = TRUE; /* unconditionally */ @@ -139,19 +142,21 @@ static CURLcode gopher_do(struct connectdata *conn, bool *done) /* ... then turn ? into TAB for search servers, Veronica, etc. ... */ j = strlen(newp); - if (j) - for(i=0; i