resolved ftruncate warning