=?UTF-8?Q?Fr=C3=A9d=C3=A9ric=20Delanoy=20?=: advapi32: Constify a character string.

Alexandre Julliard julliard at winehq.org
Tue Dec 17 14:05:00 CST 2013


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

Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date:   Mon Dec 16 23:26:07 2013 +0100

advapi32: Constify a character string.

---

 dlls/advapi32/cred.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/advapi32/cred.c b/dlls/advapi32/cred.c
index 58dd72d..038eefa 100644
--- a/dlls/advapi32/cred.c
+++ b/dlls/advapi32/cred.c
@@ -1960,7 +1960,7 @@ BOOL WINAPI CredMarshalCredentialA( CRED_MARSHAL_TYPE type, PVOID cred, LPSTR *o
 
 static UINT cred_encode( const char *bin, unsigned int len, WCHAR *cred )
 {
-    static char enc[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789#-";
+    static const char enc[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789#-";
     UINT n = 0, x;
 
     while (len > 0)




More information about the wine-cvs mailing list