Skip to content
Browse files

Increase max size of cmd line for os::System

  • Loading branch information...
1 parent a3968b4 commit 126a08d747bcf09aa01db17d5596a1cc21ba7f37 @JukkaL committed Jan 23, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/os_posix.c
  2. +1 −1 src/os_win32.c
View
2 src/os_posix.c
@@ -176,7 +176,7 @@ AValue AOsSystem(AThread *t, AValue *frame)
/* IDEA: Can we analyze the return code and raise an exception or
something -- but perhaps we'd better not. */
- char cmd[1024]; /* IDEA: Use a constant for the size */
+ char cmd[16384]; /* IDEA: Use a constant for the size */
int status;
AGetStr(t, frame[0], cmd, sizeof(cmd));
BLOCKING(status = system(cmd));
View
2 src/os_win32.c
@@ -184,7 +184,7 @@ AValue AOsSystem(AThread *t, AValue *frame)
{
/* IDEA: Can we analyze the return code and raise an exception or
something -- but perhaps we'd better not. */
- char cmd[1024]; /* IDEA: Use a constant for the size */
+ char cmd[16384]; /* IDEA: Use a constant for the size */
int error;
AGetStr(t, frame[0], cmd, sizeof(cmd));

0 comments on commit 126a08d

Please sign in to comment.
Something went wrong with that request. Please try again.