diff options
Diffstat (limited to 'src/libstate/scan_name.cpp')
-rw-r--r-- | src/libstate/scan_name.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libstate/scan_name.cpp b/src/libstate/scan_name.cpp index 861934200..eccb15565 100644 --- a/src/libstate/scan_name.cpp +++ b/src/libstate/scan_name.cpp @@ -63,7 +63,7 @@ deref_aliases(const std::pair<u32bit, std::string>& in) } -SCAN_Name::SCAN_Name(const std::string& algo_spec) +SCAN_Name::SCAN_Name(std::string algo_spec) { orig_algo_spec = algo_spec; @@ -73,6 +73,8 @@ SCAN_Name::SCAN_Name(const std::string& algo_spec) std::string decoding_error = "Bad SCAN name '" + algo_spec + "': "; + algo_spec = global_state().deref_alias(algo_spec); + for(u32bit i = 0; i != algo_spec.size(); ++i) { char c = algo_spec[i]; |