зеркало из https://github.com/github/ruby.git
* win32/win32.c (rb_w32_argv_size): if an argument is empty, it's size
is 2, not 0, because it will be converted to "". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
d5108ed277
Коммит
39c2cf2c81
|
@ -1,3 +1,8 @@
|
|||
Sat Dec 27 20:26:59 2008 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* win32/win32.c (rb_w32_argv_size): if an argument is empty, it's size
|
||||
is 2, not 0, because it will be converted to "".
|
||||
|
||||
Sat Dec 27 19:40:56 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* process.c (after_exec): needs to reset before restart timer
|
||||
|
|
|
@ -715,7 +715,7 @@ rb_w32_argv_size(char *const *argv)
|
|||
}
|
||||
}
|
||||
len += p - *t + n + 1;
|
||||
if (quote) len += 2;
|
||||
if (p - *t == 0 || quote) len += 2;
|
||||
}
|
||||
return len;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче