From 6b01989a8bf8bd0b5bc762f4312f826a35872566 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20Timm?= Date: Tue, 30 Mar 2004 12:42:10 +0000 Subject: [PATCH] INTEGRATION: CWS vcl20 (1.14.58); FILE MERGED 2004/03/10 18:52:33 pl 1.14.58.2: RESYNC: (1.14-1.15); FILE MERGED 2004/02/23 17:50:52 pl 1.14.58.1: #115527# do not use strcpy and friends --- vcl/source/app/dbggui.cxx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/vcl/source/app/dbggui.cxx b/vcl/source/app/dbggui.cxx index c11db3c65c14..e9be31f6726c 100644 --- a/vcl/source/app/dbggui.cxx +++ b/vcl/source/app/dbggui.cxx @@ -2,9 +2,9 @@ * * $RCSfile: dbggui.cxx,v $ * - * $Revision: 1.15 $ + * $Revision: 1.16 $ * - * last change: $Author: kz $ $Date: 2004-02-26 13:15:18 $ + * last change: $Author: rt $ $Date: 2004-03-30 13:42:10 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -64,8 +64,8 @@ #ifdef DBG_UTIL #include "svdata.hxx" -#include -#include +#include +#include #include #include @@ -1200,10 +1200,10 @@ IMPL_LINK( DbgDialog, ClickHdl, Button*, pButton ) DbgData* pData = DbgGetData(); pData->nTestFlags &= ~(DBG_TEST_XTOR_TRACE | DBG_TEST_MEM_INIT | DBG_TEST_RESOURCE | DBG_TEST_DIALOG | DBG_TEST_BOLDAPPFONT); pData->nTestFlags |= aData.nTestFlags & (DBG_TEST_XTOR_TRACE | DBG_TEST_MEM_INIT | DBG_TEST_RESOURCE | DBG_TEST_DIALOG | DBG_TEST_BOLDAPPFONT); - strcpy( pData->aInclClassFilter, aData.aInclClassFilter ); - strcpy( pData->aExclClassFilter, aData.aExclClassFilter ); - strcpy( pData->aInclFilter, aData.aInclFilter ); - strcpy( pData->aExclFilter, aData.aExclFilter ); + strncpy( pData->aInclClassFilter, aData.aInclClassFilter, sizeof( pData->aInclClassFilter ) ); + strncpy( pData->aExclClassFilter, aData.aExclClassFilter, sizeof( pData->aExclClassFilter ) ); + strncpy( pData->aInclFilter, aData.aInclFilter, sizeof( pData->aInclFilter ) ); + strncpy( pData->aExclFilter, aData.aExclFilter, sizeof( pData->aExclFilter ) ); if ( maBoldAppFont.GetSavedValue() != maBoldAppFont.IsChecked() ) { AllSettings aSettings = Application::GetSettings();