* 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:
FlavioJS
2007-04-09 20:21:17 +00:00
parent cf4db91bef
commit a91b77d781
9 changed files with 87 additions and 41 deletions

View File

@@ -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 >.>