commit e161af47bbe89ac4d6ac8a050f7e1f90a624d19e
Author: Oswald Buddenhagen <[email protected]>
Date: Sat Feb 23 09:22:06 2008 +0000
backport: don't overlook 2nd and later single-letter options in last
argument.
src/main.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/main.c b/src/main.c
index 4988f6c..3aa0038 100644
--- a/src/main.c
+++ b/src/main.c
@@ -178,8 +178,10 @@ main( int argc, char **argv )
}
arc4_init();
- for (oind = 1, ochar = 0; oind < argc; ) {
+ for (oind = 1, ochar = 0; ; ) {
if (!ochar || !*ochar) {
+ if (oind >= argc)
+ break;
if (argv[oind][0] != '-')
break;
if (argv[oind][1] == '-') {
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel