mirror of
https://github.com/mangosfour/server.git
synced 2025-12-31 13:37:07 +00:00
[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:
parent
a2ed351365
commit
b0ea8848a5
7 changed files with 29 additions and 19 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue