summaryrefslogtreecommitdiff
path: root/docs/examples
diff options
context:
space:
mode:
Diffstat (limited to 'docs/examples')
-rw-r--r--docs/examples/sac-example-1.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/examples/sac-example-1.c b/docs/examples/sac-example-1.c
index ded16f0..7ba8dcf 100644
--- a/docs/examples/sac-example-1.c
+++ b/docs/examples/sac-example-1.c
@@ -89,7 +89,7 @@ main (int argc, char **argv)
*command line arguments of this
*program in this loop.
*/
- for (i=0 ; i < argc ;i++)
+ for (i=1 ; i < argc ;i++)
{
if (*argv[i] != '-')
break ;
@@ -111,7 +111,7 @@ main (int argc, char **argv)
}
}
- if (i >= argc)
+ if (i > argc)
{
/*
*no file name has been given
@@ -124,7 +124,7 @@ main (int argc, char **argv)
*Now, the real libcroco related stuffs...
****************************************/
- file_path = argv[i + 1] ;
+ file_path = argv[i] ;
/*
*Instanciate the libcroco parser.