summaryrefslogtreecommitdiff
path: root/packages/Python/lldbsuite/test/settings/quoting/main.c
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2018-07-28 11:09:23 +0000
committerDimitry Andric <dim@FreeBSD.org>2018-07-28 11:09:23 +0000
commitf73363f1dd94996356cefbf24388f561891acf0b (patch)
treee3c31248bdb36eaec5fd833490d4278162dba2a0 /packages/Python/lldbsuite/test/settings/quoting/main.c
parent160ee69dd7ae18978f4068116777639ea98dc951 (diff)
Notes
Diffstat (limited to 'packages/Python/lldbsuite/test/settings/quoting/main.c')
-rw-r--r--packages/Python/lldbsuite/test/settings/quoting/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/Python/lldbsuite/test/settings/quoting/main.c b/packages/Python/lldbsuite/test/settings/quoting/main.c
index 5e3e34f84a67..2ebaa142bc5c 100644
--- a/packages/Python/lldbsuite/test/settings/quoting/main.c
+++ b/packages/Python/lldbsuite/test/settings/quoting/main.c
@@ -8,11 +8,11 @@ main(int argc, char const *argv[])
{
int i;
- FILE *output = fopen ("output.txt", "w");
+ FILE *output = fopen (argv[1], "w");
if (output == NULL)
exit (1);
- for (i = 1; i < argc; ++i)
+ for (i = 2; i < argc; ++i)
fwrite(argv[i], strlen(argv[i])+1, 1, output);
fclose (output);