truncate: fix a very unlikely case for undiagnosed errors
authorPádraig Brady <P@draigBrady.com>
Sun, 24 Oct 2010 21:44:52 +0000 (22:44 +0100)
committerPádraig Brady <P@draigBrady.com>
Tue, 16 Nov 2010 00:47:36 +0000 (00:47 +0000)
commitc8d570c2b31166d0792d64635674df5b2d543d12
tree431c93bc97ccf107b3b82dab5f1491cc8fb8c4d1
parent0d1ba34494e5e5e21e205f2e86349afeb69ca84d
truncate: fix a very unlikely case for undiagnosed errors

src/truncate.c (main): Use a bool to store if an error occurred,
rather than an int, to protect against overflow.
(do_ftruncate): Likewise.   Also change 0/false to mean failure
rather than success.
src/truncate.c