summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormhammond%skippinet.com.au <devnull@localhost>2006-06-12 13:22:43 +0000
committermhammond%skippinet.com.au <devnull@localhost>2006-06-12 13:22:43 +0000
commit21b1254c28663127deeaadc56c8e78cb2233d7a8 (patch)
treefba3ca21450fe49308b968be4a64374d4c0d22e9
parent0f6c73eeeda035d16af256ad1e6fa85f9acfc7be (diff)
downloadnspr-hg-DOM_AGNOSTIC3_BRANCH.tar.gz
Merge trunk (via DOM_AGNOSTIC3_BASE3 tag)DOM_AGNOSTIC3_BRANCH
-rw-r--r--pr/src/io/prfile.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/pr/src/io/prfile.c b/pr/src/io/prfile.c
index 5b4c0742..545fa712 100644
--- a/pr/src/io/prfile.c
+++ b/pr/src/io/prfile.c
@@ -99,10 +99,9 @@ static PRInt32 PR_CALLBACK FileWrite(PRFileDesc *fd, const void *buf, PRInt32 am
count = 0;
#if !defined(_PR_HAVE_O_APPEND) /* Bugzilla: 4090, 276330 */
- if ( PR_TRUE == fd->secret->appendMode ) {
- rv = PR_Seek(fd, 0, PR_SEEK_END );
- if ( -1 == rv ) {
- return rv;
+ if (fd->secret->appendMode) {
+ if (PR_Seek64(fd, 0, PR_SEEK_END) == -1) {
+ return -1;
}
} /* if (fd->secret->appendMode...) */
#endif /* _PR_HAVE_O_APPEND */