[Lldb-commits] [lldb] r167025 - /lldb/trunk/source/Host/common/File.cpp
Greg Clayton
gclayton at apple.com
Tue Oct 30 10:04:45 PDT 2012
Author: gclayton
Date: Tue Oct 30 12:04:45 2012
New Revision: 167025
URL: http://llvm.org/viewvc/llvm-project?rev=167025&view=rev
Log:
Fixed File::SeekFromEnd() to use SEEK_END insted of SEEK_CUR.
Modified:
lldb/trunk/source/Host/common/File.cpp
Modified: lldb/trunk/source/Host/common/File.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/common/File.cpp?rev=167025&r1=167024&r2=167025&view=diff
==============================================================================
--- lldb/trunk/source/Host/common/File.cpp (original)
+++ lldb/trunk/source/Host/common/File.cpp Tue Oct 30 12:04:45 2012
@@ -360,7 +360,7 @@
Error error;
if (DescriptorIsValid())
{
- offset = ::lseek (m_descriptor, offset, SEEK_CUR);
+ offset = ::lseek (m_descriptor, offset, SEEK_END);
if (offset == -1)
error.SetErrorToErrno();
More information about the lldb-commits
mailing list