sprintf() begone! Replaced with StringUtils' Printf()
git-svn-id: http://mc-server.googlecode.com/svn/trunk@216 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -34,9 +34,9 @@ cEvent::cEvent(void)
|
||||
delete m_Event;
|
||||
m_bIsNamed = true;
|
||||
|
||||
char c_Str[64];
|
||||
sprintf(c_Str, "cEvent%p", this);
|
||||
m_Event = sem_open( c_Str, O_CREAT, 777, 0 );
|
||||
AString EventName;
|
||||
Printf(EventName, "cEvent%p", this);
|
||||
m_Event = sem_open(EventName.c_str(), O_CREAT, 777, 0 );
|
||||
if (m_Event == SEM_FAILED)
|
||||
{
|
||||
LOGERROR("cEvent: Cannot create event, errno = %i. Aborting server.", errno);
|
||||
|
||||
Reference in New Issue
Block a user