summaryrefslogtreecommitdiff
path: root/sal/osl/unx/file.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sal/osl/unx/file.cxx')
-rw-r--r--sal/osl/unx/file.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sal/osl/unx/file.cxx b/sal/osl/unx/file.cxx
index 84cb2f006811..7dd557a7cef5 100644
--- a/sal/osl/unx/file.cxx
+++ b/sal/osl/unx/file.cxx
@@ -699,8 +699,8 @@ oslFileError FileHandle_Impl::readLineAt (
}
if (state != LINE_STATE_BEGIN)
{
- /* store (and eat) the newline char */
- m_buffer[curpos] = 0x0A, curpos++;
+ /* skip the newline char */
+ curpos++;
/* flush buffer to sequence */
result = writeSequence_Impl (
@@ -854,9 +854,9 @@ static int osl_file_queryLocking (sal_uInt32 uFlags)
return 0;
}
-#ifdef ANDROID
+#ifdef UNX
-static oslFileError
+oslFileError
SAL_CALL osl_openMemoryAsFile( void *address, size_t size, oslFileHandle *pHandle )
{
oslFileError eRet;