seq: give a proper diagnostic for an invalid --format=% option
authorJim Meyering <meyering@redhat.com>
Mon, 18 Feb 2008 17:38:52 +0000 (18:38 +0100)
committerJim Meyering <meyering@redhat.com>
Mon, 18 Feb 2008 17:38:52 +0000 (18:38 +0100)
commitb8108fd2ddf77ae79cd014f4f37798a52be13fd1
treeafecf622f9597ddf86f256adfe7ce15f581ce631
parent1d96b88c663881831438d9eceb7763a146d3ace3
seq: give a proper diagnostic for an invalid --format=% option

* src/seq.c (long_double_format): Handle '%' at end of string.
* tests/misc/seq [fmt-eos1, fmt-eos2]: New tests for the bug.
* NEWS: Mention this.
Reported by Pádraig Brady.
NEWS
src/seq.c
tests/misc/seq