blob: c818be5bec27e5b06e34d2823ed995f883e61641 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
$NetBSD: patch-nss_cmd_signtool_util.c,v 1.1 2022/04/07 19:08:40 riastradh Exp $
Fix ctype(3) abuse: https://bugzilla.mozilla.org/show_bug.cgi?id=1246768
--- nss/cmd/signtool/util.c.orig 2022-03-03 10:18:53.000000000 +0000
+++ nss/cmd/signtool/util.c
@@ -835,14 +835,14 @@ chop(char *str)
start = str;
/* Nip leading whitespace */
- while (isspace(*start)) {
+ while (isspace((unsigned char)*start)) {
start++;
}
/* Nip trailing whitespace */
if (*start) {
end = start + strlen(start) - 1;
- while (isspace(*end) && end > start) {
+ while (isspace((unsigned char)*end) && end > start) {
end--;
}
*(end + 1) = '\0';
|