https://git.reactos.org/?p=reactos.git;a=commitdiff;h=2e19c82751636fcb89bfd…
commit 2e19c82751636fcb89bfd5ced534a8a8a35cf366
Author: Amine Khaldi <amine.khaldi(a)reactos.org>
AuthorDate: Sat Oct 26 22:54:56 2019 +0100
Commit: Amine Khaldi <amine.khaldi(a)reactos.org>
CommitDate: Sat Oct 26 22:54:56 2019 +0100
[CRYPTNET_WINETEST] Sync with Wine Staging 4.18. CORE-16441
---
modules/rostests/winetests/cryptnet/cryptnet.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/rostests/winetests/cryptnet/cryptnet.c
b/modules/rostests/winetests/cryptnet/cryptnet.c
index 8600fda645d..0b017604c04 100644
--- a/modules/rostests/winetests/cryptnet/cryptnet.c
+++ b/modules/rostests/winetests/cryptnet/cryptnet.c
@@ -316,7 +316,7 @@ static void make_tmp_file(LPSTR path)
static void test_retrieveObjectByUrl(void)
{
BOOL ret;
- char tmpfile[MAX_PATH * 2], url[MAX_PATH + 8];
+ char tmpfile[MAX_PATH], url[MAX_PATH + 8];
CRYPT_BLOB_ARRAY *pBlobArray;
PCCERT_CONTEXT cert;
PCCRL_CONTEXT crl;
@@ -332,7 +332,7 @@ static void test_retrieveObjectByUrl(void)
GetLastError(), GetLastError());
make_tmp_file(tmpfile);
- snprintf(url, sizeof(url), "file://%s", tmpfile);
+ sprintf(url, "file://%s", tmpfile);
pBlobArray = (CRYPT_BLOB_ARRAY *)0xdeadbeef;
ret = CryptRetrieveObjectByUrlA(url, NULL, 0, 0, (void **)&pBlobArray,