diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-01-27 10:22:30 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-01-27 10:46:58 +0000 |
commit | 81b5d8427e29849915d544e5c17c3ea3c3e26043 (patch) | |
tree | 6230f7cc64168e64b36749737c458a10e5404b5d /extensions/source/scanner | |
parent | 199cec3af070a59fd8e4bc550e9819e3949c2d08 (diff) |
Resolves: tdf#88819 printing with ps hangs
regression from
commit bbf3aa7f92c194c9cc4546c95706e6b28e0c070c
Author: Caolán McNamara <caolanm@redhat.com>
Date: Fri Nov 14 11:06:44 2014 +0000
coverity#705989 silence Insecure temporary file
and
coverity#705983 Insecure temporary file
Change-Id: If580196322e68098adc38a9fdb775827843a9c30
Diffstat (limited to 'extensions/source/scanner')
-rw-r--r-- | extensions/source/scanner/sane.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/source/scanner/sane.cxx b/extensions/source/scanner/sane.cxx index d1f27ff9b8c6..1d42f039bf0e 100644 --- a/extensions/source/scanner/sane.cxx +++ b/extensions/source/scanner/sane.cxx @@ -699,7 +699,7 @@ bool Sane::Start( BitmapTransporter& rBitmap ) } utl::TempFile aFrame; aFrame.EnableKillingFile(); - FILE* pFrame = fopen(OUStringToOString(aFrame.GetFileName(), osl_getThreadTextEncoding()).getStr(), "wb"); + FILE* pFrame = fopen(OUStringToOString(aFrame.GetFileName(), osl_getThreadTextEncoding()).getStr(), "w+b"); if( ! pFrame ) { bSuccess = false; |