libwine: Cast-qual warning fix (Resend)

Andrew Talbot Andrew.Talbot at talbotville.com
Sat Aug 26 10:46:23 CDT 2006


Is this patch OK? (I may have caused confusion, first time around, by
following it with another libwine patch). Thanks.

-- Andy.
---
Changelog:
    libwine: Cast-qual warning fix (Resend).

diff -urN a/libs/wine/config.c b/libs/wine/config.c
--- a/libs/wine/config.c	2006-06-19 22:19:24.000000000 +0100
+++ b/libs/wine/config.c	2006-08-26 16:42:16.000000000 +0100
@@ -470,8 +470,10 @@
     /* then specified environment variable */
     if (env_var)
     {
-        argv[0] = (char *)env_var;
+        argv[0] = xmalloc(strlen(env_var) + 1);
+        strcpy(argv[0], env_var);
         preloader_exec( argv, use_preloader );
+        free(argv[0]);
     }
 
     /* now search in the Unix path */



More information about the wine-patches mailing list