diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-06-21 11:10:07 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-06-21 17:21:46 +0100 |
commit | 29d8b7861b055e02c454b617bb70291696e00ccb (patch) | |
tree | 7be7548d867e00cb6c6ec48dc5b1987bd08f5c68 /svx/source/dialog | |
parent | a8a1afac4d1b476562ec60ef244ef15d6258dde0 (diff) |
WaE: fwrite return
Diffstat (limited to 'svx/source/dialog')
-rw-r--r-- | svx/source/dialog/sendreportunx.cxx | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/svx/source/dialog/sendreportunx.cxx b/svx/source/dialog/sendreportunx.cxx index ae1de194fcf2..8360a1fbe8d1 100644 --- a/svx/source/dialog/sendreportunx.cxx +++ b/svx/source/dialog/sendreportunx.cxx @@ -227,17 +227,18 @@ namespace svx{ if ( fp ) { - ByteString strUTF8( GetUsing(), RTL_TEXTENCODING_UTF8 ); + ByteString strUTF8( GetUsing(), RTL_TEXTENCODING_UTF8 ); - fwrite( strUTF8.GetBuffer(), 1, strUTF8.Len(), fp ); + size_t nWritten = fwrite(strUTF8.GetBuffer(), 1, strUTF8.Len(), fp); + OSL_VERIFY(nWritten == strUTF8.Len()); fclose( fp ); #if defined( LINUX ) || defined (MACOSX) - setenv( "ERRORREPORT_BODYFILE", szBodyFile, 1 ); + setenv("ERRORREPORT_BODYFILE", szBodyFile, 1); #else - static ::rtl::OString strEnvBodyFile = "ERRORREPORT_BODYFILE"; - strEnvBodyFile += "="; - strEnvBodyFile += szBodyFile; - putenv( (char *)strEnvBodyFile.getStr() ); + static ::rtl::OString strEnvBodyFile = "ERRORREPORT_BODYFILE"; + strEnvBodyFile += "="; + strEnvBodyFile += szBodyFile; + putenv((char *)strEnvBodyFile.getStr()); #endif } |