Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mcs
diff options
context:
space:
mode:
authorJonathan Pryor <jpryor@novell.com>2005-02-02 17:00:25 +0300
committerJonathan Pryor <jpryor@novell.com>2005-02-02 17:00:25 +0300
commit09a5906206a1155822f2dbff4c9566ab3b57bc80 (patch)
treec85d53d7434c0ca765eea6d0264eb9d54d6df5ed /mcs
parent6d7400b70d5c80f27c95e785f0a726bc6fcd5511 (diff)
* StdioFileStream.cs: Fix Length property to actually return the size of the
file, not the # of bytes from the current position to EOF. Oops. svn path=/trunk/mcs/; revision=39985
Diffstat (limited to 'mcs')
-rw-r--r--mcs/class/Mono.Posix/Mono.Unix/ChangeLog5
-rw-r--r--mcs/class/Mono.Posix/Mono.Unix/StdioFileStream.cs2
2 files changed, 6 insertions, 1 deletions
diff --git a/mcs/class/Mono.Posix/Mono.Unix/ChangeLog b/mcs/class/Mono.Posix/Mono.Unix/ChangeLog
index 6b6e40a2daf..abcb8552e95 100644
--- a/mcs/class/Mono.Posix/Mono.Unix/ChangeLog
+++ b/mcs/class/Mono.Posix/Mono.Unix/ChangeLog
@@ -1,3 +1,8 @@
+2005-02-02 Jonathan Pryor <jonpryor@vt.edu>
+
+ * StdioFileStream.cs: Fix Length property to actually return the size of the
+ file, not the # of bytes from the current position to EOF. Oops.
+
2005-01-31 Jonathan Pryor <jonpryor@vt.edu>
* Stdlib.cs: Import "msvcrt", not "libc". These members are part of the
diff --git a/mcs/class/Mono.Posix/Mono.Unix/StdioFileStream.cs b/mcs/class/Mono.Posix/Mono.Unix/StdioFileStream.cs
index 23c1f3c53e6..790e4d770e9 100644
--- a/mcs/class/Mono.Posix/Mono.Unix/StdioFileStream.cs
+++ b/mcs/class/Mono.Posix/Mono.Unix/StdioFileStream.cs
@@ -104,7 +104,7 @@ namespace Mono.Unix {
r = Stdlib.fseek (file, curPos, SeekFlags.SEEK_SET);
UnixMarshal.ThrowExceptionForLastErrorIf (r);
- return endPos - curPos;
+ return endPos;
}
}