1 2 3 4 5 6 7 8 9 10 11
|
--- ./src/lib/chemistry/molecule/atominfo.cc.orig 2013-11-26 23:37:19.612235643 +0100
+++ ./src/lib/chemistry/molecule/atominfo.cc 2013-11-26 23:37:37.876330676 +0100
@@ -493,7 +493,7 @@
if (iname != symbol_to_Z_.end()) return iname->second;
if (allow_exceptions) {
- ExEnv::err0() << sprintf("AtomInfo: invalid name: %s\n",name.c_str());
+ ExEnv::err0() << ("AtomInfo: invalid name: " + name + "\n").c_str();
throw std::runtime_error("invalid atom name");
}
|