summaryrefslogtreecommitdiff
path: root/canohost.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2006-03-26 14:09:54 +1100
committerDamien Miller <djm@mindrot.org>2006-03-26 14:09:54 +1100
commit1d2b6706ba1b2000bd807731e6d8e35691eaf8df (patch)
treeb61365d7696fe908a14fd643362e3728e71846a3 /canohost.c
parent1ff7c642eed4df1c2f9fcc6f247d7d9949b6e81c (diff)
- deraadt@cvs.openbsd.org 2006/03/20 18:42:27
[canohost.c match.c ssh.c sshconnect.c] be strict with tolower() casting
Diffstat (limited to 'canohost.c')
-rw-r--r--canohost.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/canohost.c b/canohost.c
index 4fafb0b8..b1c35e99 100644
--- a/canohost.c
+++ b/canohost.c
@@ -88,7 +88,7 @@ get_remote_hostname(int sock, int use_dns)
*/
for (i = 0; name[i]; i++)
if (isupper(name[i]))
- name[i] = tolower(name[i]);
+ name[i] = (char)tolower(name[i]);
/*
* Map it back to an IP address and check that the given
* address actually is an address of this host. This is