projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9cb25c4
)
Fixed File::SeekFromEnd() to use SEEK_END insted of SEEK_CUR.
author
Greg Clayton
<gclayton@apple.com>
Tue, 30 Oct 2012 17:04:45 +0000
(17:04 +0000)
committer
Greg Clayton
<gclayton@apple.com>
Tue, 30 Oct 2012 17:04:45 +0000
(17:04 +0000)
llvm-svn: 167025
lldb/source/Host/common/File.cpp
patch
|
blob
|
history
diff --git
a/lldb/source/Host/common/File.cpp
b/lldb/source/Host/common/File.cpp
index
ca0c223
..
7fd5dd6
100644
(file)
--- a/
lldb/source/Host/common/File.cpp
+++ b/
lldb/source/Host/common/File.cpp
@@
-360,7
+360,7
@@
File::SeekFromEnd (off_t& offset)
Error error;
if (DescriptorIsValid())
{
- offset = ::lseek (m_descriptor, offset, SEEK_
CUR
);
+ offset = ::lseek (m_descriptor, offset, SEEK_
END
);
if (offset == -1)
error.SetErrorToErrno();