summaryrefslogtreecommitdiff
path: root/vcl/win
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-08-18 10:10:51 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-08-18 10:11:23 +0200
commit7742f5142b3bb598c103ed15b46bfcb50873a6a8 (patch)
treeb6a26ca94b0665a85ad8a2761a8b765b1366fbcd /vcl/win
parent8106bea9e929922a1d97b0ef37b6474333fc1b85 (diff)
loplugin:oncevar (clang-cl)
Change-Id: I118da42ad7a42e4d081fd9901e230a0318a77f73
Diffstat (limited to 'vcl/win')
-rw-r--r--vcl/win/gdi/salfont.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/win/gdi/salfont.cxx b/vcl/win/gdi/salfont.cxx
index 9757c9692add..1eebd3b8f6f2 100644
--- a/vcl/win/gdi/salfont.cxx
+++ b/vcl/win/gdi/salfont.cxx
@@ -1144,11 +1144,10 @@ static bool ImplGetFontAttrFromFile( const OUString& rFontFileURL,
rDFA.SetPitch(PITCH_DONTKNOW);
// Create temporary file name
- char aFileName[] = "soAAT.fot";
char aResourceName[512];
int nMaxLen = sizeof(aResourceName)/sizeof(*aResourceName) - 16;
int nLen = ::GetTempPathA( nMaxLen, aResourceName );
- ::strncpy( aResourceName + nLen, aFileName, std::max( 0, nMaxLen - nLen ));
+ ::strncpy( aResourceName + nLen, "soAAT.fot", std::max( 0, nMaxLen - nLen ));
::DeleteFileA( aResourceName );
// Create font resource file (typically with a .fot file name extension).