Fix gormlessness in html.c introduced in r8241.
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 1 Nov 2008 16:34:29 +0000 (16:34 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 1 Nov 2008 16:34:29 +0000 (16:34 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/agedu@8244 cda61777-01e9-0310-a592-d414129be87e

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");