summaryrefslogtreecommitdiff
path: root/textproc/namazu2/patches/patch-af
blob: 9bcdd7d250c470484d3688cbce99e489ba15b226 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-af,v 1.3 2004/12/15 13:09:58 taca Exp $

--- nmz/search.c.orig	2004-04-05 00:26:48.000000000 +0900
+++ nmz/search.c
@@ -564,7 +564,7 @@ do_regex_preprocessing(char *expr)
         exprp = expr;
         /* Escape meta characters */
         while (*exprp) {
-            if (!isalnum(*exprp) && !nmz_iseuc(*exprp)) {
+            if (!isalnum((unsigned char)*exprp) && !nmz_iseuc(*exprp)) {
                 *bufp = '\\';
                 bufp++;
             }