# HG changeset patch
# User Chun-wei Fan <fanchunwei@src.gnome.org>
# Date 1646801467 -28800
#      Wed Mar 09 12:51:07 2022 +0800
# Node ID 1d0c89cbdd5533687e03be224b89cfe9540192a2
# Parent  60f776ad85dd7ace1f7b885589be3fd3fdc548f6
crypto.c: Silence a compiler warning on Windows

Cast lpBuffer to a LPSTR, so that we don't get a C4047/C4024 warning for
type conversion, which normally would raise alarm.

diff --git a/libexslt/crypto.c b/libexslt/crypto.c
--- a/libexslt/crypto.c
+++ b/libexslt/crypto.c
@@ -127,7 +127,7 @@
     FormatMessageA(FORMAT_MESSAGE_ALLOCATE_BUFFER |
 		   FORMAT_MESSAGE_FROM_SYSTEM, NULL, dw,
 		   MAKELANGID (LANG_NEUTRAL, SUBLANG_DEFAULT),
-		   &lpMsgBuf, 0, NULL);
+		   (LPSTR)&lpMsgBuf, 0, NULL);
 
     xsltTransformError (xsltXPathGetTransformContext (ctxt), NULL, NULL,
 			"exslt:crypto error (line %d). %s", line,