--- basex/basex.c 2001/06/26 15:18:20 1.1 +++ basex/basex.c 2001/09/23 21:18:52 1.2 @@ -1,9 +1,10 @@ /* * version 1.5 2001-06-26 - * - slightly more robust - * - "compression" levels - * - '-I' for decode - * - '-n' option + * slightly more robust + * "compression" levels + * '-I' for decode + * '-n' option + * ident strings can not contain whitespace * version 1.4 2001-06-24 * version 1.3 1999-09-12 * version 1.2 1995-03-01 @@ -359,7 +360,7 @@ if (verbose) fprintf (stderr, "option codec %lx\n", codec); } - else if (sscanf (opt, "IDENT %s\n", ident) == 1) + else if (sscanf (opt, "IDENT %[^\n]\n", ident) == 1) { if (verbose || showident) fprintf (stderr, "option ident %s\n", ident); @@ -489,7 +490,7 @@ break; case '?': - fprintf (stderr, "encode: basex [-v] [-n] [-i id] [-1 | -7 | -9]\n"); + fprintf (stderr, "encode: basex [-v] [-n] [-i id] [-1 | -5 | -7 | -9]\n"); fprintf (stderr, "decode: basex [-d] [-v] [-n] [-I]\n"); break; }