~ft/gemnine

3082e1e3d7333b0d4ade74f61c49af4069dde1f7 — Sigrid Haflínudóttir 2 years ago e8d5a68
fix a crash in urlto
1 files changed, 2 insertions(+), 1 deletions(-)

M main.c
M main.c => main.c +2 -1
@@ 63,7 63,8 @@ urlto(Url *url, char *u)
			len = e - url->url;
		u = smprint("%.*s/%s%s", len, url->url, u, trail);
	}
	cleanname(strchr(strchr(u, ':') + 3, '/'));
	if((e = strchr(strchr(u, ':') + 3, '/')) != nil)
		cleanname(e);
	return u;
}