VirtualBox

Ignore:
Timestamp:
Jan 27, 2012 7:05:59 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
75968
Message:

IPRT/RTCString: fix find method, add testcase

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/string/ministring.cpp

    r39897 r39903  
    88
    99/*
    10  * Copyright (C) 2007-2011 Oracle Corporation
     10 * Copyright (C) 2007-2012 Oracle Corporation
    1111 *
    1212 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    207207        if (pszThis)
    208208        {
    209             const char *pszHit = strstr(pszThis, pcszFind);
     209            const char *pszHit = strstr(pszThis + pos, pcszFind);
    210210            if (pszHit)
    211211                return pszHit - pszThis;
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