Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Fix std::out_of_range exception with short filenames (Linux) #119

Merged
merged 1 commit into from
Feb 7, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/coreclr/hosts/unixcorerun/corerun.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ void AddFilesFromDirectoryToTpaList(const char* directory, std::string& tpaList)
std::string filename(entry->d_name);

// Check if the extension matches the one we are looking for
size_t extPos = filename.length() - extLength;
int extPos = filename.length() - extLength;
if ((extPos <= 0) || (filename.compare(extPos, extLength, ext) != 0))
{
continue;
Expand Down