summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--thread.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread.cpp b/thread.cpp
index 7470417..b6d6bf3 100644
--- a/thread.cpp
+++ b/thread.cpp
@@ -45,7 +45,7 @@ void ServerThread::Action()
try {
ProtectedCString configPath( TntConfig::Get().GetConfigPath().c_str() );
- char* argv[] = { "tntnet", "-c", configPath };
+ char* argv[] = { const_cast< char* >( "tntnet" ), const_cast< char* >( "-c" ), configPath };
int argc = sizeof( argv ) / sizeof( argv[0] );
m_server.reset( new Tntnet( argc, argv ) );
m_server->run();