diff options
author | David Tardon <dtardon@redhat.com> | 2011-01-02 13:08:30 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2011-01-14 15:58:28 +0100 |
commit | 769901f9497588cd61d011c04329c36246944596 (patch) | |
tree | 652264889a23599bb4e360f1d399880666ed6ed1 /fpicker | |
parent | 06c08a36bc7961b33dbb7bb55c197f5fa9c9b6c8 (diff) |
specify array size as a constant
Diffstat (limited to 'fpicker')
-rw-r--r-- | fpicker/source/win32/filepicker/controlaccess.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fpicker/source/win32/filepicker/controlaccess.cxx b/fpicker/source/win32/filepicker/controlaccess.cxx index 723b08cf5e..b21fa64e55 100644 --- a/fpicker/source/win32/filepicker/controlaccess.cxx +++ b/fpicker/source/win32/filepicker/controlaccess.cxx @@ -226,9 +226,10 @@ CTRL_GETVALUE_FUNCTION_T SAL_CALL GetCtrlGetValueFunction( CTRL_CLASS aCtrlClass CTRL_CLASS SAL_CALL GetCtrlClass( HWND hwndCtrl ) { CTRL_CLASS aCtrlClass = UNKNOWN; - TCHAR aClassName[256]; + const size_t nClassNameSize = 256; + TCHAR aClassName[nClassNameSize]; - int nRet = GetClassName(hwndCtrl,aClassName,(sizeof(aClassName)/sizeof(TCHAR))); + int nRet = GetClassName(hwndCtrl,aClassName,nClassNameSize); if (nRet) { if (0 == _tcsicmp(aClassName,TEXT("button"))) |