diff options
author | RĂ¼diger Timm <rt@openoffice.org> | 2004-03-30 12:45:09 +0000 |
---|---|---|
committer | RĂ¼diger Timm <rt@openoffice.org> | 2004-03-30 12:45:09 +0000 |
commit | 6f411f3253d8be63fa67f05011fc2b4fd5a77850 (patch) | |
tree | 12edb7b743059e8b722d414be71b3d4e9e5892b4 /vcl/win/source/gdi/salprn.cxx | |
parent | 62c09a4c94c66e582280e269d012e86ac9963b41 (diff) |
INTEGRATION: CWS vcl20 (1.15.24); FILE MERGED
2004/02/25 15:49:06 pl 1.15.24.1: #115527# remove strcpy and friends
Diffstat (limited to 'vcl/win/source/gdi/salprn.cxx')
-rw-r--r-- | vcl/win/source/gdi/salprn.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/vcl/win/source/gdi/salprn.cxx b/vcl/win/source/gdi/salprn.cxx index ebd9f339d3d9..8bfa14f46243 100644 --- a/vcl/win/source/gdi/salprn.cxx +++ b/vcl/win/source/gdi/salprn.cxx @@ -2,9 +2,9 @@ * * $RCSfile: salprn.cxx,v $ * - * $Revision: 1.15 $ + * $Revision: 1.16 $ * - * last change: $Author: hr $ $Date: 2004-02-02 18:29:22 $ + * last change: $Author: rt $ $Date: 2004-03-30 13:45:09 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -892,8 +892,8 @@ static HDC ImplCreateSalPrnIC( WinSalInfoPrinter* pPrinter, ImplJobSetup* pSetup n += 2048; char *lpszDriverName = new char[n]; char *lpszDeviceName = new char[n]; - strcpy( lpszDriverName, aDriver.GetBuffer() ); - strcpy( lpszDeviceName, aDevice.GetBuffer() ); + strncpy( lpszDriverName, aDriver.GetBuffer(), n ); + strncpy( lpszDeviceName, aDevice.GetBuffer(), n ); HDC hDC = CreateICA( lpszDriverName, lpszDeviceName, 0, @@ -1372,8 +1372,8 @@ BOOL WinSalPrinter::StartJob( const XubString* pFileName, n += 2048; char *lpszDriverName = new char[n]; char *lpszDeviceName = new char[n]; - strcpy( lpszDriverName, aDriver.GetBuffer() ); - strcpy( lpszDeviceName, aDevice.GetBuffer() ); + strncpy( lpszDriverName, aDriver.GetBuffer(), n ); + strncpy( lpszDeviceName, aDevice.GetBuffer(), n ); HDC hDC = CreateDCA( lpszDriverName, lpszDeviceName, NULL, |