fix file mode printing

This commit is contained in:
Brian Cox 2017-03-25 23:41:37 -07:00
parent 76868c5ccc
commit da8748b6f2
1 changed files with 2 additions and 2 deletions

View File

@ -604,8 +604,8 @@ bool cUnixFSServices::GetGroupName( gid_t group_id, TSTRING& tstrGroup ) const
//
void cUnixFSServices::ConvertModeToString( uint64 perm, TSTRING& tstrPerm ) const
{
TCHAR szPerm[11]; //10 permission bits plus the NULL
strncpy( szPerm, _T("----------"), 9);
TCHAR szPerm[12]; //10 permission bits plus the NULL
strncpy( szPerm, _T("----------"), 11);
ASSERT( sizeof(unsigned short) <= sizeof(uint32) );
// We do this in case an "unsigned short" is ever larger than the