crypt32/tests: Write-strings warnings fix

Andrew Talbot Andrew.Talbot at talbotville.com
Tue Jul 18 15:48:44 CDT 2006


Changelog:
    crypt32/tests: Write-strings warnings fix.

diff -urN a/dlls/crypt32/tests/main.c b/dlls/crypt32/tests/main.c
--- a/dlls/crypt32/tests/main.c	2006-05-23 13:47:43.000000000 +0100
+++ b/dlls/crypt32/tests/main.c	2006-07-18 21:27:03.000000000 +0100
@@ -31,8 +31,9 @@
 {
     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_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_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-patches mailing list