diff options
author | Cy Schubert <cy@FreeBSD.org> | 2015-02-05 20:53:33 +0000 |
---|---|---|
committer | Cy Schubert <cy@FreeBSD.org> | 2015-02-05 20:53:33 +0000 |
commit | f7cba3a80d9ebefc57776fffd17a4ae68f72e494 (patch) | |
tree | dc1c5074828f0c5fafe2fb8f5599339dfdc5bc97 /libntp/ssl_init.c | |
parent | 44a728f815af203cd7a91db83b06325818433463 (diff) |
Notes
Diffstat (limited to 'libntp/ssl_init.c')
-rw-r--r-- | libntp/ssl_init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libntp/ssl_init.c b/libntp/ssl_init.c index 7f1e9a096b20..a9d1d546dfb8 100644 --- a/libntp/ssl_init.c +++ b/libntp/ssl_init.c @@ -96,13 +96,13 @@ keytype_from_text( LIB_GETBUF(upcased); strlcpy(upcased, text, LIB_BUFLENGTH); for (pch = upcased; '\0' != *pch; pch++) - *pch = (char)toupper(*pch); + *pch = (char)toupper((unsigned char)*pch); key_type = OBJ_sn2nid(upcased); #else key_type = 0; #endif - if (!key_type && 'm' == tolower(text[0])) + if (!key_type && 'm' == tolower((unsigned char)text[0])) key_type = NID_md5; if (!key_type) |