[Libreoffice-commits] core.git: desktop/win32

Tor Lillqvist tml at iki.fi
Fri Aug 30 01:30:21 PDT 2013


 desktop/win32/source/guistdio/guistdio.inc |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 52d35df0e61019e722675a27fbb01101a96bff75
Author: Tor Lillqvist <tml at iki.fi>
Date:   Fri Aug 30 11:29:46 2013 +0300

    WaE: size/t/DWORD/int: possible loss of data
    
    Change-Id: I4fa005a8ddb3efd3dc624110215b938ee20a67a6

diff --git a/desktop/win32/source/guistdio/guistdio.inc b/desktop/win32/source/guistdio/guistdio.inc
index 17d986e..5918ccc 100644
--- a/desktop/win32/source/guistdio/guistdio.inc
+++ b/desktop/win32/source/guistdio/guistdio.inc
@@ -172,10 +172,10 @@ DWORD WINAPI InputThread( LPVOID pParam )
     WideCharToMultiByte(
         GetConsoleCP(), 0, L"\r\n", 2, mbBuff, cNewLine, NULL, NULL);
 
-    const size_t dwBufferSize = 256;
+    const DWORD dwBufferSize = 256;
     char* readBuf = (char*) malloc(dwBufferSize);
     int readAll = 0;
-    size_t curBufSize = dwBufferSize;
+    DWORD curBufSize = dwBufferSize;
 
     while ( ReadFile( GetStdHandle( STD_INPUT_HANDLE ),
                       readBuf + readAll,


More information about the Libreoffice-commits mailing list