Andrew Talbot : crypt32/tests: Write-strings warnings fix.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Jul 19 04:02:30 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: a0f208755e21bff7d7267e743dfa9b247861804f
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=a0f208755e21bff7d7267e743dfa9b247861804f

Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date:   Tue Jul 18 21:48:44 2006 +0100

crypt32/tests: Write-strings warnings fix.

---

 dlls/crypt32/tests/main.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/dlls/crypt32/tests/main.c b/dlls/crypt32/tests/main.c
index 81a5a49..ec3d6e6 100644
--- a/dlls/crypt32/tests/main.c
+++ b/dlls/crypt32/tests/main.c
@@ -31,8 +31,9 @@ static void test_findAttribute(void)
 {
     PCRYPT_ATTRIBUTE ret;
     BYTE blobbin[] = {0x02,0x01,0x01};
+    static CHAR oid[] = "1.2.3";
     CRYPT_ATTR_BLOB blobs[] = { { sizeof blobbin, blobbin }, };
-    CRYPT_ATTRIBUTE attr = { "1.2.3", sizeof(blobs) / sizeof(blobs[0]), blobs };
+    CRYPT_ATTRIBUTE attr = { oid, sizeof(blobs) / sizeof(blobs[0]), blobs };
 
     /* returns NULL, last error not set */
     SetLastError(0xdeadbeef);
@@ -71,8 +72,9 @@ static void test_findAttribute(void)
 static void test_findExtension(void)
 {
     PCERT_EXTENSION ret;
+    static CHAR oid[] = "1.2.3";
     BYTE blobbin[] = {0x02,0x01,0x01};
-    CERT_EXTENSION ext = { "1.2.3", TRUE, { sizeof blobbin, blobbin } };
+    CERT_EXTENSION ext = { oid, TRUE, { sizeof blobbin, blobbin } };
 
     /* returns NULL, last error not set */
     SetLastError(0xdeadbeef);
@@ -111,9 +113,10 @@ static void test_findExtension(void)
 static void test_findRDNAttr(void)
 {
     PCERT_RDN_ATTR ret;
+    static CHAR oid[] = "1.2.3";
     BYTE bin[] = { 0x16,0x09,'J','u','a','n',' ','L','a','n','g' };
     CERT_RDN_ATTR attrs[] = {
-     { "1.2.3", CERT_RDN_IA5_STRING, { sizeof bin, bin } },
+     { oid, CERT_RDN_IA5_STRING, { sizeof bin, bin } },
     };
     CERT_RDN rdns[] = {
      { sizeof(attrs) / sizeof(attrs[0]), attrs },




More information about the wine-cvs mailing list