summaryrefslogtreecommitdiff
path: root/lib/str.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2016-11-23 14:30:48 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2016-11-23 15:02:25 +0100
commit42c5dd87faed931e6c352fa96294b3c47679f114 (patch)
treeb04a6ccfb71bf4af6786e8419ba2bf33a9d36693 /lib/str.c
parent08bb4d33619dced0ecf72adbc47175a78b8789b5 (diff)
downloadgnutls-42c5dd87faed931e6c352fa96294b3c47679f114.tar.gz
avoid the use of c_isascii() and use c_isprint()
That latter detects correctly the printable characters we are interested in.
Diffstat (limited to 'lib/str.c')
-rw-r--r--lib/str.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/str.c b/lib/str.c
index 2893c32c2c..4a72a2f27f 100644
--- a/lib/str.c
+++ b/lib/str.c
@@ -722,7 +722,7 @@ _gnutls_hostname_compare(const char *certname,
unsigned i;
for (i=0;i<certnamesize;i++) {
- if (c_isascii(certname[i]) == 0)
+ if (c_isprint(certname[i]) == 0)
return hostname_compare_raw(certname, certnamesize, hostname);
}