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

--- src/result.c.orig	2004-03-21 00:02:51.000000000 +0900
+++ src/result.c
@@ -315,8 +315,8 @@ emphasize(char *str)
 static int
 is_wordboundary(char *p)
 {
-  if (isalpha(*p) && isalpha(*(p + 1))) return 0;
-  if (isdigit(*p) && isdigit(*(p + 1))) return 0;
+  if (isalpha((unsigned char)*p) && isalpha((unsigned char)*(p + 1))) return 0;
+  if (isdigit((unsigned char)*p) && isdigit((unsigned char)*(p + 1))) return 0;
   return 1;
 }