Fix bug #241 by adding off_t cast to macro that uses ftruncate().

This commit is contained in:
jtc 1994-05-07 01:09:56 +00:00
parent 7409c5a619
commit 353b511d05

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* from: @(#)def.h 5.22 (Berkeley) 6/25/90
* $Id: def.h,v 1.4 1994/03/23 01:32:50 cgd Exp $
* $Id: def.h,v 1.5 1994/05/07 01:09:56 jtc Exp $
*/
#include <sys/param.h> /* includes <sys/types.h> */
@ -269,7 +269,7 @@ struct ignoretab {
*/
#define trunc(stream) { \
(void)fflush(stream); \
(void)ftruncate(fileno(stream), (long)ftell(stream)); \
(void)ftruncate(fileno(stream), (off_t)ftell(stream)); \
}
/*