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 | b80088f0146ab054f2d230aad7c59b95ee2b625b (patch) | |
tree | f4f57ae14e28444344d9055e11bda2a4792d14e8 /fpicker/source | |
parent | 942b844bc294976d3f96932d0536bbda5b581c86 (diff) |
specify array size as a constant
Diffstat (limited to 'fpicker/source')
-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 5156511c1533..d41eacd60145 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"))) |