From cb1ce1416948bea94bd0bb4bb3a66a74cc16557b Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Wed, 1 Feb 2012 14:08:12 +0000 Subject: AString logging fix 2 git-svn-id: http://mc-server.googlecode.com/svn/trunk@218 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cWebAdmin.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'source/cWebAdmin.cpp') diff --git a/source/cWebAdmin.cpp b/source/cWebAdmin.cpp index 9707d3158..cd663d7b6 100644 --- a/source/cWebAdmin.cpp +++ b/source/cWebAdmin.cpp @@ -190,10 +190,8 @@ void cWebAdmin::Request_Handler(webserver::http_request* r) const cPluginManager::PluginList & List = PM->GetAllPlugins(); for( cPluginManager::PluginList::const_iterator itr = List.begin(); itr != List.end(); ++itr ) { - char c_VersionNum[32]; // 32 digits should be enough? XD - sprintf_s( c_VersionNum, 32, "%i", (*itr)->GetVersion() ); - Content += std::string("
  • ") + std::string( (*itr)->GetName() ) + " V. " + std::string( c_VersionNum ) + "
  • "; - + AString VersionNum; + AppendPrintf(Content, "
  • %s V.%i
  • ", (*itr)->GetName(), (*itr)->GetVersion()); } } Content += ""; -- cgit v1.2.3