mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
Patch from Mostafa that fixes Win32 truncation problem.
This commit is contained in:
parent
088903bbe1
commit
f31c62a713
@ -3,7 +3,7 @@
|
||||
FILE: icalfileset.c
|
||||
CREATOR: eric 23 December 1999
|
||||
|
||||
$Id: icalfileset.c,v 1.6 2002/03/14 18:04:40 mikep%oeone.com Exp $
|
||||
$Id: icalfileset.c,v 1.7 2002/03/19 14:20:54 mikep%oeone.com Exp $
|
||||
$Locker: $
|
||||
|
||||
(C) COPYRIGHT 2000, Eric Busboom, http://www.softwarestudio.org
|
||||
@ -375,6 +375,8 @@ icalerrorenum icalfileset_commit(icalfileset* cluster)
|
||||
if(ftruncate(impl->fd,write_size) < 0){
|
||||
return ICAL_FILE_ERROR;
|
||||
}
|
||||
#else
|
||||
chsize( impl->fd, tell( impl->fd ) );
|
||||
#endif
|
||||
|
||||
return ICAL_NO_ERROR;
|
||||
|
Loading…
Reference in New Issue
Block a user