VirtualBox

Changeset 57367 in vbox for trunk/src/bldprogs


Ignore:
Timestamp:
Aug 14, 2015 6:02:49 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
102130
Message:

scm: adjusted the flower box detection.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bldprogs/scmrw.cpp

    r57365 r57367  
    480480    while (offLine < cchLine && pchLine[offLine] == '*')
    481481        offLine++;
    482     if (offLine < 20)
     482    if (offLine < 20)                   /* (Code below depend on a reasonable minimum here.) */
    483483        return false;
    484484    while (offLine < cchLine && RT_C_IS_BLANK(pchLine[offLine]))
     
    498498
    499499    offLine = 0;
    500     while (offLine < cchLine && RT_C_IS_BLANK(pchLine[offLine]))
    501         offLine++;
    502     if (offLine + 5 > cchLine)
    503         return false;
     500    if (RT_C_IS_BLANK(pchLine[0]))
     501        offLine = RT_C_IS_BLANK(pchLine[1]) ? 2 : 1;
     502
    504503    if (pchLine[offLine] != '*')
    505504        return false;
    506505    offLine++;
     506
    507507    if (!RT_C_IS_BLANK(pchLine[offLine + 1]))
    508508        return false;
    509509    offLine++;
     510
    510511    while (offLine < cchLine && RT_C_IS_BLANK(pchLine[offLine]))
    511512        offLine++;
     
    541542
    542543    offLine = 0;
     544    if (RT_C_IS_BLANK(pchLine[0]))
     545        offLine = RT_C_IS_BLANK(pchLine[1]) ? 2 : 1;
    543546    while (offLine < cchLine && pchLine[offLine] == '*')
    544547        offLine++;
Note: See TracChangeset for help on using the changeset viewer.

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