diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-01-03 19:34:48 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-01-03 23:44:03 +0800 |
commit | ff9fdfac57d8807399b1b1ddd5c69a819349251f (patch) | |
tree | 75dbdaf0c33b4237f8f1426f5f66ae006b6eaf2d /libsolidity/interface | |
parent | fdbe78a7693aef51a69ec4399de4f9b919ae1675 (diff) | |
download | dexon-solidity-ff9fdfac57d8807399b1b1ddd5c69a819349251f.tar.gz dexon-solidity-ff9fdfac57d8807399b1b1ddd5c69a819349251f.tar.zst dexon-solidity-ff9fdfac57d8807399b1b1ddd5c69a819349251f.zip |
Properly handle colons in file names within jsonio
Diffstat (limited to 'libsolidity/interface')
-rw-r--r-- | libsolidity/interface/StandardCompiler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/interface/StandardCompiler.cpp b/libsolidity/interface/StandardCompiler.cpp index d44254ed..7aa971c6 100644 --- a/libsolidity/interface/StandardCompiler.cpp +++ b/libsolidity/interface/StandardCompiler.cpp @@ -461,7 +461,7 @@ Json::Value StandardCompiler::compileInternal(Json::Value const& _input) Json::Value contractsOutput = Json::objectValue; for (string const& contractName: compilationSuccess ? m_compilerStack.contractNames() : vector<string>()) { - size_t colon = contractName.find(':'); + size_t colon = contractName.rfind(':'); solAssert(colon != string::npos, ""); string file = contractName.substr(0, colon); string name = contractName.substr(colon + 1); |