VirtualBox

Changeset 3024 in kBuild


Ignore:
Timestamp:
Jan 7, 2017 5:46:13 PM (8 years ago)
Author:
bird
Message:

dir-nt-bird.c / dir_glob_readir: Try avoid names with spaces in them.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/dir-nt-bird.c

    r3017 r3024  
    251251        if (pEntry->bObjType != KFSOBJ_TYPE_MISSING)
    252252        {
    253             /* Copy the name that fits.  If neither fits, skip the name. */
    254             if (pEntry->cchName < sizeof(pDir->DirEnt.d_name))
     253            /* Copy the name that fits, trying to avoid names with spaces.
     254               If neither fits, skip the name. */
     255            if (   pEntry->cchName < sizeof(pDir->DirEnt.d_name)
     256                && (   pEntry->pszShortName == pEntry->pszName
     257                    || memchr(pEntry->pszName, ' ', pEntry->cchName) == NULL))
    255258            {
    256259                pDir->DirEnt.d_namlen = pEntry->cchName;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette