summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-04-24 17:07:55 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-04-24 17:07:55 +0000
commit18a945d476bb4c5319db42e3585c9617c125cba5 (patch)
treed53c801a47f943dcdbfcd7ee4e8a165be394d579 /win32
parentb06b5f6e69552665001a6897f36841006c122b76 (diff)
downloadperl-18a945d476bb4c5319db42e3585c9617c125cba5.tar.gz
fix bug in change#3123 (off-by-one, caused C<qx[noargs]> to fail
on win32) p4raw-link: @3123 on //depot/perl: 0aaad0ff610b01c0682abfc20594c83a6d49f148 p4raw-id: //depot/perl@3269
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 480dfeb987..fe621d1ecc 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -2093,14 +2093,11 @@ create_command_line(const char* command, const char * const *args)
New(1310, cmd, len, char);
ptr = cmd;
strcpy(ptr, command);
- ptr += strlen(ptr);
- *ptr++ = ' ';
for (index = 0; (arg = (char*)args[index]) != NULL; ++index) {
- strcpy(ptr, arg);
ptr += strlen(ptr);
- if ((char*)args[index+1] != NULL)
- *ptr++ = ' ';
+ *ptr++ = ' ';
+ strcpy(ptr, arg);
}
return cmd;