Used synergy::string::sprintf instead of append #4690

This commit is contained in:
Jerry (Xinyu Hou) 2015-05-27 09:52:58 -07:00
parent d83cb23cc7
commit 3498d1bc8e
1 changed files with 1 additions and 2 deletions

View File

@ -63,8 +63,7 @@ ToolApp::run(int argc, char** argv)
return kExitFailed; return kExitFailed;
} }
else { else {
String output("activeDesktop:"); String output = synergy::string::sprintf("activeDesktop:%s", name.c_str());
output.append(name);
LOG((CLOG_INFO "%s", output.c_str())); LOG((CLOG_INFO "%s", output.c_str()));
} }
#endif #endif