From 2590cc843a4d4c38bca9a41a380052ab3dc3402a Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Sun, 20 Jan 2002 13:34:51 +0000 Subject: [PATCH] Fixed RH bug #58124 due to an off-by-one error when parsing -o arguments. * xsltproc/xsltproc.c: Fixed RH bug #58124 due to an off-by-one error when parsing -o arguments. Daniel --- ChangeLog | 5 +++++ xsltproc/xsltproc.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2bd736e8..3482450d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sun Jan 20 14:33:33 CET 2002 Daniel Veillard + + * xsltproc/xsltproc.c: Fixed RH bug #58124 due to an off-by-one + error when parsing -o arguments. + Sun Jan 20 14:15:55 CET 2002 Daniel Veillard * doc/xsltproc.xml libxslt/xsltutils.c xsltproc/xsltproc.c: diff --git a/xsltproc/xsltproc.c b/xsltproc/xsltproc.c index 7bccc152..f2a67f41 100644 --- a/xsltproc/xsltproc.c +++ b/xsltproc/xsltproc.c @@ -380,7 +380,7 @@ main(int argc, char **argv) (!strcmp(argv[i], "-output")) || (!strcmp(argv[i], "--output"))) { i++; - output = argv[i++]; + output = argv[i]; } else if ((!strcmp(argv[i], "-V")) || (!strcmp(argv[i], "-version")) || (!strcmp(argv[i], "--version"))) {