summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-28 09:42:09 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-28 09:42:09 +0000
commit259ed6176f32bed0e02fd3a546977efc432da755 (patch)
tree2127b867e42f8c7d07277e51cfcc2ee699b5e27a /win32
parenta929fd040a7dff2ab7739ad5e1389db4c2c2ec12 (diff)
merges r21099 from trunk into ruby_1_9_1.
* 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/branches/ruby_1_9_1@21127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/win32.c b/win32/win32.c
index d346a925d6..316b69b873 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -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;
}