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

--- src/output.c.orig	2004-03-21 00:02:51.000000000 +0900
+++ src/output.c
@@ -490,7 +490,7 @@ print_query(const char * qs, int w)
 	if (strncmp(qs, "whence=", strlen("whence=")) == 0) {
 	    foo = 1;
 	    printf("whence=%d", w);
-	    for (qs += strlen("whence="); isdigit(*qs); qs++);
+	    for (qs += strlen("whence="); isdigit((unsigned char)*qs); qs++);
 	} else {
 	    /* '"' is converted to entities """ */
 	    putc_entitize(*qs);