* Recoded and renamed the trim function in strlib to normalize_name. (didn't behave like a standard trim function, see function comment for what it does)
* Added a proper trim function to strlib. * Other minor cleanups. git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10199 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
@@ -1256,7 +1256,7 @@ int make_new_char_sql(int fd, unsigned char *dat) {
|
||||
|
||||
strncpy(name, dat, NAME_LENGTH);
|
||||
name[NAME_LENGTH-1] = '\0'; //Always terminate string.
|
||||
trim(name,TRIM_CHARS); //Trim character name. [Skotlex]
|
||||
normalize_name(name,TRIM_CHARS); //Normalize character name. [Skotlex]
|
||||
jstrescapecpy(t_name, name);
|
||||
|
||||
// disabled until fixed >.>
|
||||
|
||||
Reference in New Issue
Block a user