xmllite/writer: Properly validate DocType name.
commitfa591d3c5603f15328b7321f79dfaf86eb9b4033
authorDavid Kahurani <k.kahurani@gmail.com>
Fri, 7 Oct 2022 07:57:06 +0000 (7 10:57 +0300)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 10 Oct 2022 09:07:46 +0000 (10 11:07 +0200)
treef17a0f4cf19426f08755627d9681936c7b255ace
parentb402ce89447cbce370e375079b41943ee5b0bd80
xmllite/writer: Properly validate DocType name.

Current code skips a character and goes on to run is_namechar the next
instead of the current character ultimately always running a null
string on is_namechar and therefore always returning error on
multi-character strings

Signed-off-by: David Kahurani <k.kahurani@gmail.com>
dlls/xmllite/tests/writer.c
dlls/xmllite/writer.c