diff options
author | 2015-09-11 11:41:26 +0000 | |
---|---|---|
committer | 2015-09-11 11:41:26 +0000 | |
commit | 30de01598bee205f0e25d3cdc80aef648e7e3e3c (patch) | |
tree | b2b63dba9c6883718218ab016a1ffecbebefa6c1 | |
parent | rpcdata should not be exported; ok guenther (diff) | |
download | wireguard-openbsd-30de01598bee205f0e25d3cdc80aef648e7e3e3c.tar.xz wireguard-openbsd-30de01598bee205f0e25d3cdc80aef648e7e3e3c.zip |
Avoid undefined behavior with isascii, cast its argument to unsigned char.
Suggested earlier by guenther@, discussed with miod@
-rw-r--r-- | gnu/usr.sbin/mkhybrid/src/name.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/usr.sbin/mkhybrid/src/name.c b/gnu/usr.sbin/mkhybrid/src/name.c index 4993fda6f62..88c3262a527 100644 --- a/gnu/usr.sbin/mkhybrid/src/name.c +++ b/gnu/usr.sbin/mkhybrid/src/name.c @@ -211,7 +211,7 @@ int FDECL3(iso9660_file_length, } if(current_length < 30) { - if(!isascii(*pnt)) + if(!isascii((unsigned char)*pnt)) { *result++ = '_'; } @@ -279,7 +279,7 @@ int FDECL3(iso9660_file_length, switch (*pnt) { default: - if(!isascii(*pnt)) + if(!isascii((unsigned char)*pnt)) { *result++ = '_'; } |