summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
Diffstat (limited to 'process.c')
-rw-r--r--process.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/process.c b/process.c
index dcde77a..85b2058 100644
--- a/process.c
+++ b/process.c
@@ -299,12 +299,12 @@ struct waitall_data {
int pid;
int status;
VALUE ary;
-}
+};
static int
waitall_each(key, value, data)
int key, value;
- struct wait_data *data;
+ struct waitall_data *data;
{
VALUE pid_status_member;
@@ -563,6 +563,10 @@ rb_proc_exec(str)
char **argv, **a;
security(str);
+
+ while (*str && ISSPACE(*str))
+ str++;
+
for (s=str; *s; s++) {
if (*s != ' ' && !ISALPHA(*s) && strchr("*?{}[]<>()~&|\\$;'`\"\n",*s)) {
#if defined(MSDOS)