Fix gormlessness in html.c introduced in r8241.
[sgt/agedu] / html.c
diff --git a/html.c b/html.c
index 76a906f..bc9905f 100644 (file)
--- a/html.c
+++ b/html.c
@@ -463,7 +463,7 @@ char *html_query(const void *t, unsigned long index,
        q = p + 1;
        if (doing_href)
            htprintf(ctx, "</a>");
-       htescape(ctx, q, p - q, 1);
+       htescape(ctx, p, 1, 1);
     }
     htescape(ctx, q, strlen(q), 1);
     htprintf(ctx, "</code>\n");