fix two bugs in ptx
authorJim Meyering <meyering@redhat.com>
Tue, 15 Jul 2008 06:30:38 +0000 (08:30 +0200)
committerJim Meyering <meyering@redhat.com>
Tue, 15 Jul 2008 06:30:38 +0000 (08:30 +0200)
commit773be9eca85da9a9a33d42d29ecfd04c9aec5c3f
tree532df16b7074678bfdb9ad035b8a4ab13d24d940
parent8461d49df08a241e68d4b0d0b1a2b93bafc1246b
fix two bugs in ptx

* src/ptx.c (fix_output_parameters): Don't let before_max_width
go negative -- that would cause an infloop in define_all_fields.
(main): Don't clobber name[0] with lists of two or more input files.
* tests/misc/ptx: New file.  Test for the above.
* tests/Makefile.am (TESTS): Add misc/ptx.
src/ptx.c
tests/Makefile.am
tests/misc/ptx [new file with mode: 0755]