blob: ebf0571cf98ffb32ee44848a923a44a3eec1deeb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
$NetBSD: patch-lib_fascist.c,v 1.1 2020/11/22 11:36:32 nia Exp $
Argument to ctype functions must be unsigned char.
--- lib/fascist.c.orig 2019-02-14 01:54:41.000000000 +0000
+++ lib/fascist.c
@@ -28,7 +28,7 @@ typedef unsigned short uint16_t;
#include "packer.h"
-#define ISSKIP(x) (isspace(x) || ispunct(x))
+#define ISSKIP(x) (isspace((unsigned char)x) || ispunct((unsigned char)x))
#define MINDIFF 5
#define MINLEN 6
@@ -744,7 +744,7 @@ FascistLookUser(PWDICT *pwp, char *instr
Trim(password);
- while (*password && isspace(*password))
+ while (*password && isspace((unsigned char)*password))
{
password++;
}
|