diff options
Diffstat (limited to 'nav.c')
-rw-r--r-- | nav.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nav.c b/nav.c index 18b21db..8a520ac 100644 --- a/nav.c +++ b/nav.c @@ -100,7 +100,7 @@ void nav_redraw(struct nav_state *ns) { int nav_to(struct nav_state *ns, const char *url) { enum doc_type doct; struct addr adr; - buf_t buf; + str_t buf; if (net_addr(url, &adr, ns->prot_default)) { return -1; } @@ -110,11 +110,11 @@ int nav_to(struct nav_state *ns, const char *url) { } struct doc d; if (parse_doc(doct, &d, &buf)) { - buf_free(&buf); + str_free(&buf); return -1; } nav_push(ns, d); - buf_free(&buf); + str_free(&buf); nav_redraw(ns); return 0; } |