aboutsummaryrefslogtreecommitdiff
path: root/src/common/util.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-08-31 17:39:51 +0000
committerNick Mathewson <nickm@torproject.org>2006-08-31 17:39:51 +0000
commitf170e5798fd7634a1be2c748464acb2ca485c9a3 (patch)
tree26153067b5e0ef42fca4ead32813c6b445006d75 /src/common/util.c
parentbc0c39f85de6b55e431c13c85522abd2d2bccf7d (diff)
downloadtor-f170e5798fd7634a1be2c748464acb2ca485c9a3.tar
tor-f170e5798fd7634a1be2c748464acb2ca485c9a3.tar.gz
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/common/util.c')
-rw-r--r--src/common/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/util.c b/src/common/util.c
index e5fea55da..f6fa063e8 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -308,7 +308,7 @@ void
tor_strlower(char *s)
{
while (*s) {
- *s = tolower(*s);
+ *s = TOR_TOLOWER(*s);
++s;
}
}
@@ -319,7 +319,7 @@ void
tor_strupper(char *s)
{
while (*s) {
- *s = toupper(*s);
+ *s = TOR_TOUPPER(*s);
++s;
}
}