CVS commit by ossi:
don't overlook 2nd and later single-letter options in last argument.
reported by fedora
M +3 -1 main.c 1.65
--- isync/src/main.c #1.64:1.65
@@ -235,6 +235,8 @@ main( int argc, char **argv )
mvars->t[1] = 1;
- for (mvars->oind = 1, ochar = 0; mvars->oind < argc; ) {
+ for (mvars->oind = 1, ochar = 0; ; ) {
if (!ochar || !*ochar) {
+ if (mvars->oind >= argc)
+ break;
if (argv[mvars->oind][0] != '-')
break;
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel