diff options
author | Dodji Seketeli <dodji at seketeli dot org> | 2003-06-25 20:25:55 +0000 |
---|---|---|
committer | Dodji Seketeli <dodji@src.gnome.org> | 2003-06-25 20:25:55 +0000 |
commit | fee56f5bf4b0014a5cb817ed09506beba943d1cf (patch) | |
tree | 99994cb4cf4ded473976705fe5c0c249cfd1ed67 /docs/examples | |
parent | 21117521f55588267f39a331c830edce6837184d (diff) | |
download | libcroco-fee56f5bf4b0014a5cb817ed09506beba943d1cf.tar.gz |
2003-06-25 Dodji Seketeli <dodji at seketeli dot org>
Diffstat (limited to 'docs/examples')
-rw-r--r-- | docs/examples/sac-example-1.c | 6 |
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. |