diff options
author | Christian Vogler <cvogler@users.sourceforge.net> | 2002-04-19 00:03:50 +0000 |
---|---|---|
committer | Christian Vogler <cvogler@users.sourceforge.net> | 2002-04-19 00:03:50 +0000 |
commit | 3d2c7e32a594b3beff25d40a7870dee73f5cbf4b (patch) | |
tree | 473e59d23695ebb6e3e92a8c63806d862f88186c | |
parent | f0380c8fb5a3b502b8bd5d5d5deb481c7ca2b5b0 (diff) | |
download | xine-lib-3d2c7e32a594b3beff25d40a7870dee73f5cbf4b.tar.gz xine-lib-3d2c7e32a594b3beff25d40a7870dee73f5cbf4b.tar.bz2 |
fix off-by-one error in argc checking - hopefully it is right this time.
CVS patchset: 1737
CVS date: 2002/04/19 00:03:50
-rw-r--r-- | misc/xine-fontconv.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/misc/xine-fontconv.c b/misc/xine-fontconv.c index 9083fb1f1..a1be59aae 100644 --- a/misc/xine-fontconv.c +++ b/misc/xine-fontconv.c @@ -388,7 +388,7 @@ int main(int argc, char *argv[]) { * command line parsing */ - if (argc<3) { + if (argc<3 || argc>4) { printf ("usage:%s font.ttf fontname [encoding]\n", argv[0]); exit (1); } @@ -414,10 +414,10 @@ int main(int argc, char *argv[]) { return 1; } - if (argc==3) { + if (argc==4) { encoding=argv[3]; } else { - encoding="UNICODE"; //default tagret charset - no conv + encoding="UNICODE"; //default target charset - no conv } cd = iconv_open("UNICODE", encoding); |