Commit a08900b4 authored by Matteo Quintiliani's avatar Matteo Quintiliani

Fixed problem displaying 'non-option ARGV-elements'


git-svn-id: file:///home/quintiliani/svncopy/nmxptool/trunk@820 3cd66e75-5955-46cb-a940-c26e5fc5497d
parent 49201d21
......@@ -7,7 +7,7 @@
* Istituto Nazionale di Geofisica e Vulcanologia - Italy
* quintiliani@ingv.it
*
* $Id: nmxptool_getoptlong.c,v 1.72 2008-02-29 07:09:25 mtheo Exp $
* $Id: nmxptool_getoptlong.c,v 1.73 2008-02-29 07:18:44 mtheo Exp $
*
*/
......@@ -714,7 +714,8 @@ int nmxptool_getopt_long(int argc, char **argv, NMXPTOOL_PARAMS *params)
nmxp_log(NMXP_LOG_NORM_NO, NMXP_LOG_D_ANY, "non-option ARGV-elements: ");
while (optind < argc) {
nmxp_log(NMXP_LOG_NORM_NO, NMXP_LOG_D_ANY, "%s ",
NMXP_LOG_STR(argv[optind++]));
NMXP_LOG_STR(argv[optind]));
optind++;
}
putchar ('\n');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment