From 50a3d18330fac34c7069b90f1c5694fca0d1306a Mon Sep 17 00:00:00 2001 From: David Wragg Date: Wed, 24 Nov 2010 15:34:09 +0000 Subject: Comment typo fixes --- tools/windows/process.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tools') 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]; -- cgit v1.2.1