zygo

ncurses gopher client
Log | Files | Refs

commit e79f418f2c03f4250b9d4c2750df26cb1423242d
parent 24f0e643dfd54843f4900b2a4c054c617fb7b451
Author: hhvn <dev@hhvn.uk>
Date:   Wed, 19 Jan 2022 17:54:00 +0000

zygo.c: fix uri parsing.. again

Diffstat:
Mzygo.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/zygo.c b/zygo.c @@ -244,10 +244,10 @@ uritoelem(const char *uri) { } } - if (!ret->server) { + if (!ret->server && seg == SEGSERVER) { ret->server = estrdup(tmp); tmp += strlen(tmp); - } else if (!ret->port) { + } else if (!ret->port && seg == SEGPORT) { ret->port = estrdup(tmp); tmp += strlen(tmp); }