summaryrefslogtreecommitdiff
path: root/usr.sbin/tftpd
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2013-11-26 21:47:17 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2013-11-26 21:47:17 +0000
commitd942a06ce92db6dd38c5c169ff1bba69a51de11d (patch)
tree238e68ac30df98ef83a14c0c8253fb3d2e355c6e /usr.sbin/tftpd
parent5d9cb13264991cb7623915fa1e67bf4d85c65ad4 (diff)
unsigned char for ctype
Diffstat (limited to 'usr.sbin/tftpd')
-rw-r--r--usr.sbin/tftpd/tftpd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/tftpd/tftpd.c b/usr.sbin/tftpd/tftpd.c
index a480e16c9e6..b32b3e891f3 100644
--- a/usr.sbin/tftpd/tftpd.c
+++ b/usr.sbin/tftpd/tftpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tftpd.c,v 1.17 2013/11/12 22:27:13 deraadt Exp $ */
+/* $OpenBSD: tftpd.c,v 1.18 2013/11/26 21:47:16 deraadt Exp $ */
/*
* Copyright (c) 2012 David Gwynne <dlg@uq.edu.au>
@@ -745,7 +745,7 @@ parse_options(struct tftp_client *client, char *cp, size_t size,
}
for (option = cp; *cp; cp++)
- *cp = tolower(*cp);
+ *cp = tolower((unsigned char)*cp);
for (i = 0; i < NOPT; i++) {
if (strcmp(option, opt_names[i]) == 0) {
@@ -803,7 +803,7 @@ again:
goto again;
}
for (cp = mode; *cp; cp++)
- *cp = tolower(*cp);
+ *cp = tolower((unsigned char)*cp);
for (pf = formats; pf->f_mode; pf++) {
if (strcmp(pf->f_mode, mode) == 0)