bump LICENSE - 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 0f038037edcb9d876ced704462f8daf4f2d2c4b2
 (DIR) parent 473563a6c16c683af52cb791fbbfdfb997f758bb
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Wed, 22 May 2024 18:45:53 +0200
       
       bump LICENSE
       
       and improve a few comments
       
       Diffstat:
         M LICENSE                             |       2 +-
         M webdump.c                           |       5 +++--
       
       2 files changed, 4 insertions(+), 3 deletions(-)
       ---
 (DIR) diff --git a/LICENSE b/LICENSE
       @@ -1,6 +1,6 @@
        ISC License
        
       -Copyright (c) 2017-2023 Hiltjo Posthuma <hiltjo@codemadness.org>
       +Copyright (c) 2017-2024 Hiltjo Posthuma <hiltjo@codemadness.org>
        
        Permission to use, copy, modify, and/or distribute this software for any
        purpose with or without fee is hereby granted, provided that the above
 (DIR) diff --git a/webdump.c b/webdump.c
       @@ -1988,8 +1988,9 @@ xmltagstart(XMLParser *p, const char *t, size_t tl)
                memset(cur, 0, sizeof(*cur)); /* clear / reset node */
                /* tag defaults */
                cur->tag.displaytype = DisplayInline;
       -        cur->tag.name = cur->tagname;
       +        cur->tag.name = cur->tagname; /* assign fixed-size buffer */
                strlcpy(cur->tagname, t, sizeof(cur->tagname));
       +
                /* force to lowercase */
                for (s = cur->tagname; *s; s++)
                        *s = TOLOWER((unsigned char)*s);
       @@ -1998,7 +1999,7 @@ xmltagstart(XMLParser *p, const char *t, size_t tl)
                if (found)
                        memcpy(&(cur->tag), found, sizeof(*found));
        
       -        /* parent tag is hidden, so hide ourself too */
       +        /* if parent tag is hidden then hide itself too */
                if (curnode > 0 && (nodes[curnode - 1].tag.displaytype & DisplayNone))
                        cur->tag.displaytype |= DisplayNone;
        }