catalog.c: Silence a cast warning on VS 2022

Fixes #457.
This commit is contained in:
Lukáš Tyrychtr 2022-12-08 13:32:49 +01:00
parent 93a01c46f1
commit 85c6cacd67

View File

@ -3129,7 +3129,7 @@ xmlInitializeCatalog(void) {
strncpy(p, "\\..\\etc\\catalog", 255 - (p - buf));
uri = xmlCanonicPath((const xmlChar*)buf);
if (uri != NULL) {
strncpy(XML_XML_DEFAULT_CATALOG, uri, 255);
strncpy(XML_XML_DEFAULT_CATALOG, (char* )uri, 255);
xmlFree(uri);
}
}