start: Constify a character string

Frédéric Delanoy frederic.delanoy at gmail.com
Thu Dec 19 15:25:10 CST 2013


---
 programs/start/start.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/programs/start/start.c b/programs/start/start.c
index f1cb26a..a27aad7 100644
--- a/programs/start/start.c
+++ b/programs/start/start.c
@@ -374,7 +374,7 @@ int wmain (int argc, WCHAR *argv[])
                     WCHAR *commandline;
                     STARTUPINFOW startup_info;
                     PROCESS_INFORMATION process_information;
-                    static WCHAR commandlineformat[] = {'"','%','s','"','%','s',0};
+                    static const WCHAR commandlineformat[] = {'"','%','s','"','%','s',0};
 
                     /* explorer on windows always quotes the filename when running a binary on windows (see bug 5224) so we have to use CreateProcessW in this case */
 
-- 
1.8.5




More information about the wine-patches mailing list