secur32: Write-strings warnings fix

Andrew Talbot Andrew.Talbot at talbotville.com
Mon Jul 17 16:41:12 CDT 2006


Changelog:
    secur32: Write-strings warnings fix.

diff -urN a/dlls/secur32/ntlm.c b/dlls/secur32/ntlm.c
--- a/dlls/secur32/ntlm.c	2006-06-23 12:46:18.000000000 +0100
+++ b/dlls/secur32/ntlm.c	2006-07-17 22:24:53.000000000 +0100
@@ -86,14 +86,16 @@
 {
     SECURITY_STATUS ret;
     PNegoHelper helper = NULL;
-    
+    static CHAR ntlm_auth[] = "ntlm_auth",
+                helper_protocol[] = "--helper-protocol=squid-2.5-ntlmssp";
+
     SEC_CHAR *client_user_arg = NULL;
     SEC_CHAR *client_domain_arg = NULL;
     SEC_WCHAR *username = NULL, *domain = NULL;
-    
+
     SEC_CHAR *client_argv[5];
-    SEC_CHAR *server_argv[] = { "ntlm_auth",
-        "--helper-protocol=squid-2.5-ntlmssp",
+    SEC_CHAR *server_argv[] = { ntlm_auth,
+        helper_protocol,
         NULL };
 
     TRACE("(%s, %s, 0x%08lx, %p, %p, %p, %p, %p, %p)\n",
@@ -1216,13 +1218,15 @@
 };
 
 void SECUR32_initNTLMSP(void)
-{   
+{
     SECURITY_STATUS ret;
     PNegoHelper helper;
+    static CHAR ntlm_auth[] = "ntlm_auth",
+                version[]   = "--version";
 
     SEC_CHAR *args[] = {
-        "ntlm_auth",
-        "--version",
+        ntlm_auth,
+        version,
         NULL };
 
     if((ret = fork_helper(&helper, "ntlm_auth", args)) != SEC_E_OK)



More information about the wine-patches mailing list