summaryrefslogtreecommitdiffstats
path: root/source/cWebAdmin.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-01 15:08:12 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-01 15:08:12 +0100
commitcb1ce1416948bea94bd0bb4bb3a66a74cc16557b (patch)
tree9809332db528931f427a3ca6f46d46f561a644be /source/cWebAdmin.cpp
parentAString logging fix (diff)
downloadcuberite-cb1ce1416948bea94bd0bb4bb3a66a74cc16557b.tar
cuberite-cb1ce1416948bea94bd0bb4bb3a66a74cc16557b.tar.gz
cuberite-cb1ce1416948bea94bd0bb4bb3a66a74cc16557b.tar.bz2
cuberite-cb1ce1416948bea94bd0bb4bb3a66a74cc16557b.tar.lz
cuberite-cb1ce1416948bea94bd0bb4bb3a66a74cc16557b.tar.xz
cuberite-cb1ce1416948bea94bd0bb4bb3a66a74cc16557b.tar.zst
cuberite-cb1ce1416948bea94bd0bb4bb3a66a74cc16557b.zip
Diffstat (limited to 'source/cWebAdmin.cpp')
-rw-r--r--source/cWebAdmin.cpp6
1 files changed, 2 insertions, 4 deletions
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("<li>") + std::string( (*itr)->GetName() ) + " V. " + std::string( c_VersionNum ) + "</li>";
-
+ AString VersionNum;
+ AppendPrintf(Content, "<li>%s V.%i</li>", (*itr)->GetName(), (*itr)->GetVersion());
}
}
Content += "</ul>";