summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDavid Wragg <david@rabbitmq.com>2010-11-24 15:34:09 +0000
committerDavid Wragg <david@rabbitmq.com>2010-11-24 15:34:09 +0000
commit50a3d18330fac34c7069b90f1c5694fca0d1306a (patch)
treef736cb130317b03d504edcc58f51171e174daf02 /tools
parentb593ce1b3ce740c17f209c8b33b74ea430bde65b (diff)
downloadrabbitmq-c-github-ask-50a3d18330fac34c7069b90f1c5694fca0d1306a.tar.gz
Comment typo fixes
Diffstat (limited to 'tools')
-rw-r--r--tools/windows/process.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/windows/process.c b/tools/windows/process.c
index d0e162a..730a5b6 100644
--- a/tools/windows/process.c
+++ b/tools/windows/process.c
@@ -85,6 +85,7 @@ static char *make_command_line(const char *const *argv)
/* calculate the length of the required buffer, making worst
case assumptions for simplicity */
for (i = 0;;) {
+ /* each character could need escaping */
len += strlen(argv[i]) * 2;
if (!argv[++i])
@@ -100,10 +101,10 @@ static char *make_command_line(const char *const *argv)
die("allocating memory for subprocess command line");
/* Here we perform the inverse of the CommandLineToArgvW
- function. Note that it's rules are slightly crazy: A
+ function. Note that its rules are slightly crazy: A
sequence of backslashes only act to escape if followed by
- double quotes. A seuqence of backslashes not followed by
- double quotes is unaffected. */
+ double quotes. A sequence of backslashes not followed by
+ double quotes is untouched. */
for (i = 0;;) {
const char *src = argv[i];