summaryrefslogtreecommitdiff
path: root/src/common/strlib.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-04-14 12:12:27 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-04-14 12:12:27 +0000
commit05005d554cf25b66a971c79384e85885b5293d50 (patch)
treee28e66d39dc4bb547ee87711785bcefda7651c86 /src/common/strlib.c
parentb3787becdcdc93e39616f780661b96eb0c75feb2 (diff)
downloadhercules-05005d554cf25b66a971c79384e85885b5293d50.tar.gz
hercules-05005d554cf25b66a971c79384e85885b5293d50.tar.bz2
hercules-05005d554cf25b66a971c79384e85885b5293d50.tar.xz
hercules-05005d554cf25b66a971c79384e85885b5293d50.zip
Fixed TXT char creation blocking characters with nonstandard names
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10257 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/common/strlib.c')
-rw-r--r--src/common/strlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/strlib.c b/src/common/strlib.c
index 9cac2ca4f..977dc8306 100644
--- a/src/common/strlib.c
+++ b/src/common/strlib.c
@@ -114,7 +114,7 @@ int remove_control_chars(char* str)
int change = 0;
for(i = 0; str[i]; i++) {
- if (str[i] < 32) {
+ if (ISCNTRL(str[i])) {
str[i] = '_';
change = 1;
}