[128295] trunk/dports/games
ryandesign at macports.org
ryandesign at macports.org
Tue Nov 18 09:54:05 PST 2014
Revision: 128295
https://trac.macports.org/changeset/128295
Author: ryandesign at macports.org
Date: 2014-11-18 09:54:05 -0800 (Tue, 18 Nov 2014)
Log Message:
-----------
mystonline-cider, mystonline-wine: null-terminate new_argv in execve to fix chown-data program
Modified Paths:
--------------
trunk/dports/games/mystonline-cider/Portfile
trunk/dports/games/mystonline-cider/files/chown-data.c
trunk/dports/games/mystonline-wine/Portfile
trunk/dports/games/mystonline-wine/files/chown-data.c
Modified: trunk/dports/games/mystonline-cider/Portfile
===================================================================
--- trunk/dports/games/mystonline-cider/Portfile 2014-11-18 17:46:27 UTC (rev 128294)
+++ trunk/dports/games/mystonline-cider/Portfile 2014-11-18 17:54:05 UTC (rev 128295)
@@ -6,7 +6,7 @@
name mystonline-cider
set my_name mystonline
version 2010
-revision 2
+revision 3
platforms darwin
categories games x11
maintainers ryandesign
Modified: trunk/dports/games/mystonline-cider/files/chown-data.c
===================================================================
--- trunk/dports/games/mystonline-cider/files/chown-data.c 2014-11-18 17:46:27 UTC (rev 128294)
+++ trunk/dports/games/mystonline-cider/files/chown-data.c 2014-11-18 17:54:05 UTC (rev 128295)
@@ -24,7 +24,7 @@
extern char **environ;
if (argc > 1)
argc = 1;
- new_argv = malloc(sizeof(*new_argv) * (argc + 4 + 1));
+ new_argv = malloc(sizeof(*new_argv) * (argc + 6));
j = 0;
new_argv[j++] = "chown";
new_argv[j++] = "-R";
@@ -33,6 +33,7 @@
new_argv[j++] = "@WINEPREFIX@";
new_argv[j++] = "@ASSETS@";
new_argv[j++] = "@APP_PACKAGE@";
+ new_argv[j++] = 0;
execve(real_exec, new_argv, environ);
printErr();
return 0;
Modified: trunk/dports/games/mystonline-wine/Portfile
===================================================================
--- trunk/dports/games/mystonline-wine/Portfile 2014-11-18 17:46:27 UTC (rev 128294)
+++ trunk/dports/games/mystonline-wine/Portfile 2014-11-18 17:54:05 UTC (rev 128295)
@@ -6,7 +6,7 @@
name mystonline-wine
set my_name mystonline
version 2010
-revision 2
+revision 3
platforms darwin
categories games x11
maintainers ryandesign
Modified: trunk/dports/games/mystonline-wine/files/chown-data.c
===================================================================
--- trunk/dports/games/mystonline-wine/files/chown-data.c 2014-11-18 17:46:27 UTC (rev 128294)
+++ trunk/dports/games/mystonline-wine/files/chown-data.c 2014-11-18 17:54:05 UTC (rev 128295)
@@ -24,7 +24,7 @@
extern char **environ;
if (argc > 1)
argc = 1;
- new_argv = malloc(sizeof(*new_argv) * (argc + 3 + 1));
+ new_argv = malloc(sizeof(*new_argv) * (argc + 5));
j = 0;
new_argv[j++] = "chown";
new_argv[j++] = "-R";
@@ -32,6 +32,7 @@
new_argv[j++] = argv[i];
new_argv[j++] = "@WINEPREFIX@";
new_argv[j++] = "@ASSETS@";
+ new_argv[j++] = 0;
execve(real_exec, new_argv, environ);
printErr();
return 0;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141118/49374cf4/attachment.html>
More information about the macports-changes
mailing list