--- embedtools/src/cfger.c 2014/01/30 00:55:19 1.1.2.2 +++ embedtools/src/cfger.c 2014/01/30 08:36:39 1.1.2.3 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ - * $Id: cfger.c,v 1.1.2.2 2014/01/30 00:55:19 misho Exp $ + * $Id: cfger.c,v 1.1.2.3 2014/01/30 08:36:39 misho Exp $ * ************************************************************************* The ELWIX and AITNET software is distributed under the following @@ -62,7 +62,7 @@ Usage() "\t-v\t\tVerbose ...\n" "\t-q\t\tQuiet mode\n" "\t-o \tOutput result to file\n" - "\t-l \tList A/V pair\n" + "\t-l\t\tList A/V pairs\n" "\t-s \tSet A/V pair\n" "\t-g \tGet value from A/V pair\n" "*\"attr\" format: [section/]attribute\n" @@ -77,7 +77,7 @@ main(int argc, char **argv) ait_val_t data = AIT_VAL_INITIALIZER(data); FILE *out = stdout; - while ((ch = getopt(argc, argv, "hvql:s:g:o:")) != -1) + while ((ch = getopt(argc, argv, "hvqls:g:o:")) != -1) switch (ch) { case 'v': Verbose++; @@ -94,7 +94,6 @@ main(int argc, char **argv) return 1; } else m = 'l'; - strlcpy(szAttr, optarg, sizeof szAttr); break; case 's': if (m) {