Skip to content

Commit

Permalink
Use strtok_s PAL API xplat
Browse files Browse the repository at this point in the history
  • Loading branch information
jkoritzinsky committed Feb 5, 2024
1 parent 598800d commit 9cf7d84
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/coreclr/md/compiler/emit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1952,19 +1952,11 @@ STDMETHODIMP RegMeta::DefineDocument( // S_OK or error.
partsIndexesCount++;
}
char* context;
#ifdef HOST_WINDOWS
stringToken = strtok_s(docName, (const char*)delim, &context);
#else
stringToken = strtok_r(docName, (const char*)delim, &context);
#endif
while (stringToken != NULL)
{
IfFailGo(m_pStgdb->m_MiniMd.m_BlobHeap.AddBlob(MetaData::DataBlob((BYTE*)stringToken, (ULONG)strlen(stringToken)), partsIndexesPtr++));
#ifdef HOST_WINDOWS
stringToken = strtok_s(NULL, (const char*)delim, &context);
#else
stringToken = strtok_r(NULL, (const char*)delim, &context);
#endif
partsIndexesCount++;
}

Expand Down

0 comments on commit 9cf7d84

Please sign in to comment.