diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-08-31 17:39:51 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-08-31 17:39:51 +0000 |
commit | f170e5798fd7634a1be2c748464acb2ca485c9a3 (patch) | |
tree | 26153067b5e0ef42fca4ead32813c6b445006d75 /src/or | |
parent | bc0c39f85de6b55e431c13c85522abd2d2bccf7d (diff) | |
download | tor-f170e5798fd7634a1be2c748464acb2ca485c9a3.tar.gz tor-f170e5798fd7634a1be2c748464acb2ca485c9a3.zip |
r8692@Kushana: nickm | 2006-08-31 13:38:07 -0400
Fix bug 327 (part 2): Cast char to unsigned char before passing to toupper/tolower. (Follow the same idiom as with isupper and friends, in case we run into the same problem on SGI or whereever it was.)
svn:r8310
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/config.c | 2 | ||||
-rw-r--r-- | src/or/routerparse.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/or/config.c b/src/or/config.c index 86fd8066f9..fd480a839d 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -1737,7 +1737,7 @@ get_default_nickname(void) *cp = '\0'; break; } - *cp = tolower(*cp); + *cp = TOR_TOLOWER(*cp); } /* Strip invalid characters. */ diff --git a/src/or/routerparse.c b/src/or/routerparse.c index b9b3d2e029..69b1738a6b 100644 --- a/src/or/routerparse.c +++ b/src/or/routerparse.c @@ -1279,7 +1279,7 @@ router_parse_addr_policy_from_string(const char *s, int assume_action) len = strlen(s); cp = tmp = tor_malloc(len+2); for (idx = 0; idx < len; ++idx) { - tmp[idx] = tolower(s[idx]); + tmp[idx] = TOR_TOLOWER(s[idx]); } tmp[len]='\n'; tmp[len+1]='\0'; |