aboutsummaryrefslogtreecommitdiffstats
path: root/com32
diff options
context:
space:
mode:
authorErwan Velu <erwan.velu@free.fr>2009-03-15 20:28:23 +0100
committerErwan Velu <erwan.velu@free.fr>2009-03-15 20:28:23 +0100
commit9ee00e08b773923e9e259c12b811a2b130319608 (patch)
tree8085829c58d9310a5e430c94b85e6c236950e8fd /com32
parentab00ab6c05bab7b6e2814b0ae0cd8fb501c5fd79 (diff)
parent1cb786fc4c9a11179b73d6f5005a2bd990a51b92 (diff)
downloadsyslinux.git-9ee00e08b773923e9e259c12b811a2b130319608.tar.gz
syslinux.git-9ee00e08b773923e9e259c12b811a2b130319608.tar.xz
syslinux.git-9ee00e08b773923e9e259c12b811a2b130319608.zip
Merge branch 'master' of git://git.kernel.org/pub/scm/boot/syslinux/syslinux
Diffstat (limited to 'com32')
-rw-r--r--com32/modules/cmd.c24
1 files changed, 3 insertions, 21 deletions
diff --git a/com32/modules/cmd.c b/com32/modules/cmd.c
index e1d646b5..1a7f0ffe 100644
--- a/com32/modules/cmd.c
+++ b/com32/modules/cmd.c
@@ -16,28 +16,10 @@
* Execute arbitrary commands
*/
-#include <string.h>
-#include <alloca.h>
#include <com32.h>
-int main(int argc, const char *argv[])
+int main(void)
{
- size_t len = 0;
- char *cmd;
- char *tmp;
- int i;
-
- for (i = 1; i < argc; i++)
- len += strlen(argv[i]) + 1;
-
- tmp = cmd = alloca(len);
-
- for (i = 1; i < argc; i++) {
- tmp = strpcpy(tmp, argv[i]);
- if (i != argc-1)
- *tmp++ = ' ';
- }
- *tmp = '\0';
-
- syslinux_run_command(cmd);
+ syslinux_run_command(__com32.cs_cmdline);
+ return -1;
}