Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 210722
Collapse All | Expand All

(-)C:\ia-stuff\work\jt-vvl\jvmti\tptp\org.eclipse.tptp.platform.jvmti.runtime\src-native\src\Martini\Infrastructure\common\bootloaderoptionparser.cpp (-2 / +2 lines)
Lines 88-101 void CBootLoaderOptionParser::FreeString Link Here
88
TResult CBootLoaderOptionParser::ParseModuleSpec(SModuleSpec *pSpec, const char *szSpec)
88
TResult CBootLoaderOptionParser::ParseModuleSpec(SModuleSpec *pSpec, const char *szSpec)
89
{
89
{
90
    // Split the module name and its options around the first ":" character
90
    // Split the module name and its options around the first ":" character
91
    char *szOpt = strchr(szSpec, ':');
91
    const char *szOpt = strchr(szSpec, ':');
92
    if (NULL == szOpt)
92
    if (NULL == szOpt)
93
    {
93
    {
94
        pSpec->strOptions.Set("");
94
        pSpec->strOptions.Set("");
95
    }
95
    }
96
    else
96
    else
97
    {
97
    {
98
        pSpec->strOptions.Set(szOpt + 1); // skip the ":"
98
        pSpec->strOptions.Set(&szOpt[1]); // skip the ":"
99
    }
99
    }
100
    char szName[1024];
100
    char szName[1024];
101
    memset(szName, 0, 1024);
101
    memset(szName, 0, 1024);

Return to bug 210722