summaryrefslogtreecommitdiff
path: root/editors/mg/patches/patch-aa
blob: 3a814c4fa37c478929b6b892b2a4b008bf3d0353 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$NetBSD: patch-aa,v 1.1.1.1 2009/02/13 11:04:14 abs Exp $

--- dired.c.orig	2008-12-30 12:40:28.000000000 +0000
+++ dired.c
@@ -570,11 +570,11 @@ d_makename(struct line *lp, char *fn, si
 	ep = lp->l_text + llength(lp);
 	p++; /* skip action letter, if any */
 	for (i = 0; i < NAME_FIELD; i++) {
-		while (p < ep && isspace(*p))
+		while (p < ep && isspace((unsigned char)*p))
 			p++;
-		while (p < ep && !isspace(*p))
+		while (p < ep && !isspace((unsigned char)*p))
 			p++;
-		while (p < ep && isspace(*p))
+		while (p < ep && isspace((unsigned char)*p))
 			p++;
 		if (p == ep)
 			return (ABORT);