[8736] operator new[] based version of strdup() function to get bonuses from Intel Memory allocator mainly in DB code

Signed-off-by: Ambal <pogrebniak@gala.net>
This commit is contained in:
Ambal 2009-10-26 01:05:08 +02:00
parent a2ed351365
commit b0ea8848a5
7 changed files with 29 additions and 19 deletions

View file

@ -242,7 +242,7 @@ void RASocket::zprint( const char * szText )
#ifdef RA_CRYPT
char *megabuffer=strdup(szText);
char *megabuffer = mangos_strdup(szText);
unsigned int sz=strlen(megabuffer);
Encrypt(megabuffer,sz);
send(r,megabuffer,sz,0);