du: don't print junk when diagnosing out-of-range time stamps
commit7d93a082b6e3ece0b120a5150d2020c7fa11b2f5
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 24 Oct 2010 00:20:01 +0000 (23 17:20 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 24 Oct 2010 00:24:38 +0000 (23 17:24 -0700)
treebf963fe6dfed9a7451f2a6e73d972f16ec14c4c4
parentd5d82ecf3b0f370216c12e0f8163f0a5249da91e
du: don't print junk when diagnosing out-of-range time stamps

* src/du.c (show_date): Fix call to fputs with a buffer that
contains some uninitialized data.
* tests/Makefile.am (TESTS): Add du/big-timestamp.
* tests/du/bigtime: New file, which checks for the bug.
src/du.c
tests/Makefile.am
tests/du/bigtime [new file with mode: 0755]