mirror of
https://github.com/mangosfour/server.git
synced 2025-12-19 13:37:01 +00:00
[12062] Cleanup MaNGOS sources
This commit is contained in:
parent
a4cbed3199
commit
aeff8f9d1a
46 changed files with 1982 additions and 1864 deletions
|
|
@ -226,9 +226,9 @@ struct LocaleNameStr
|
|||
extern LocaleNameStr const fullLocaleNameList[];
|
||||
|
||||
//operator new[] based version of strdup() function! Release memory by using operator delete[] !
|
||||
inline char * mangos_strdup(const char * source)
|
||||
inline char* mangos_strdup(const char* source)
|
||||
{
|
||||
char * dest = new char[strlen(source) + 1];
|
||||
char* dest = new char[strlen(source) + 1];
|
||||
strcpy(dest, source);
|
||||
return dest;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue