Mercurial > noffle
changeset 168:cf2274194d38 noffle
[svn] small option parsing fix
author | mnalis |
---|---|
date | Mon, 26 Feb 2001 22:41:26 +0000 |
parents | 7ba337dafb2c |
children | 39838e7d38be |
files | ChangeLog src/noffle.c |
diffstat | 2 files changed, 8 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Sun Feb 25 23:29:50 2001 +0000 +++ b/ChangeLog Mon Feb 26 22:41:26 2001 +0000 @@ -1,3 +1,7 @@ +Sun Feb 26 2001 Matija Nalis <mnalis-sf@voyager.hr> + + * fix for small glitches in options parting in src/noffle.c + Sun Feb 25 2001 Jim Hague <jim.hague@acm.org> * TODO,content.c,lock.c,server.c,server.h: Remove bug notice re:
--- a/src/noffle.c Sun Feb 25 23:29:50 2001 +0000 +++ b/src/noffle.c Mon Feb 26 22:41:26 2001 +0000 @@ -10,7 +10,7 @@ received for some seconds (to allow multiple clients connect at the same time). - $Id: noffle.c 249 2001-01-25 13:38:31Z bears $ + $Id: noffle.c 261 2001-02-26 22:41:26Z mnalis $ */ #if HAVE_CONFIG_H @@ -411,7 +411,7 @@ else if ( strcmp( cmd, "desc" ) != 0 && strcmp( cmd, "post" ) != 0 ) { - fprintf( stderr, "Unknown argument -m %s\n", optarg ); + fprintf( stderr, "Unknown argument -m %s\n", cmd ); return FALSE; } @@ -447,7 +447,7 @@ Grp_setPostAllow( grp, c ); else { - fprintf( stderr, "Access must be 'y', 'n' or 'm'" ); + fprintf( stderr, "Access must be 'y', 'n' or 'm'\n" ); return FALSE; } } @@ -883,7 +883,7 @@ result = EXIT_FAILURE; } else - if ( ! doModify( *argv, --argc, ++argv ) ) + if ( ! doModify( argv[0], --argc, &argv[1] ) ) result = EXIT_FAILURE; break; case 'n':