advapi32/tests: Write-strings warnings fix

Andrew Talbot Andrew.Talbot at talbotville.com
Mon Jul 17 01:47:20 CDT 2006


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

diff -urN a/dlls/advapi32/tests/crypt_lmhash.c b/dlls/advapi32/tests/crypt_lmhash.c
--- a/dlls/advapi32/tests/crypt_lmhash.c	2006-06-05 13:30:44.000000000 +0100
+++ b/dlls/advapi32/tests/crypt_lmhash.c	2006-07-16 12:30:07.000000000 +0100
@@ -314,10 +314,10 @@
     char output[0x40], result[0x40];
     int r;
     struct ustring in, key, out, res;
-    char *datastr = "twinkle twinkle little star";
-    char *keystr = "byolnim";
+    static char datastr[] = "twinkle twinkle little star";
+    static char keystr[]  = "byolnim";
 
-    in.Buffer = (unsigned char *) datastr;
+    in.Buffer = (unsigned char *)datastr;
     in.Length = strlen(datastr);
     in.MaximumLength = 0;
 



More information about the wine-patches mailing list