1. mst
  2. ooo340

Commits

fs  committed 755bed1

merging changes from m59 herein

  • Participants
  • Parent commits 2e564a6
  • Branches default

Comments (0)

Files changed (1)

File sal/osl/w32/diagnose.c

View file
  • Ignore whitespace
 		sal_Char	szMessage[512];
 		szMessage[sizeof(szMessage)-1] = 0;
         written = _vsnprintf( szMessage, sizeof(szMessage) - 2, lpszFormat, args );
-        szMessage[ written == -1 ? sizeof(szMessage) - 2 : written ] = '\n';
+        if ( written == -1 )
+            written = sizeof(szMessage) - 2;
+        szMessage[ written++ ] = '\n';
+        szMessage[ written ] = 0;
 		OutputDebugString( szMessage );
 	}