Andrew Talbot : secur32: Write-strings warnings fix.

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


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

Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date:   Mon Jul 17 22:41:12 2006 +0100

secur32: Write-strings warnings fix.

---

 dlls/secur32/ntlm.c |   18 +++++++++++-------
 1 files changed, 11 insertions(+), 7 deletions(-)

diff --git a/dlls/secur32/ntlm.c b/dlls/secur32/ntlm.c
index 8d8f318..1b33ddb 100644
--- a/dlls/secur32/ntlm.c
+++ b/dlls/secur32/ntlm.c
@@ -86,14 +86,16 @@ static SECURITY_STATUS SEC_ENTRY ntlm_Ac
 {
     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 @@ static const SecPkgInfoA infoA = {
 };
 
 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-cvs mailing list