slightly reduce stack size for entities - webdump - HTML to plain-text converter for webpages
 (HTM) git clone git://git.codemadness.org/webdump
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 31fac2476f06b72f3d8bc7ac654cfde4e8452525
 (DIR) parent 3d6afd123b27f8bbd2544071047ee3d0cce4c8c1
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Sun, 21 Sep 2025 14:21:30 +0200
       
       slightly reduce stack size for entities
       
       ... rename n to len (consistency).
       
       Diffstat:
         M webdump.c                           |      12 ++++++------
       
       1 file changed, 6 insertions(+), 6 deletions(-)
       ---
 (DIR) diff --git a/webdump.c b/webdump.c
       @@ -1617,8 +1617,8 @@ static void
        xmldataentity(XMLParser *p, const char *data, size_t datalen)
        {
                struct node *cur;
       -        char buf[16];
       -        int n;
       +        char buf[8];
       +        int len;
        
                if (reader_ignore)
                        return;
       @@ -1627,9 +1627,9 @@ xmldataentity(XMLParser *p, const char *data, size_t datalen)
                if (cur->tag.displaytype & DisplayNone)
                        return;
        
       -        n = xml_entitytostr(data, buf, sizeof(buf));
       -        if (n > 0)
       -                xmldata(p, buf, (size_t)n);
       +        len = xml_entitytostr(data, buf, sizeof(buf));
       +        if (len > 0)
       +                xmldata(p, buf, (size_t)len);
                else
                        xmldata(p, data, datalen);
        }
       @@ -2283,7 +2283,7 @@ static void
        xmlattrentity(XMLParser *p, const char *t, size_t tl, const char *n,
                size_t nl, const char *v, size_t vl)
        {
       -        char buf[16];
       +        char buf[8];
                int len;
        
                len = xml_entitytostr(v, buf, sizeof(buf));