c7105a5a85
kakasi-dev mailing list: http://www.namazu.org/pipermail/kakasi-dev/2006-March/000039.html Bump PKGREVISION.
22 lines
564 B
Text
22 lines
564 B
Text
$NetBSD: patch-ad,v 1.1 2006/03/13 09:17:51 taca Exp $
|
|
|
|
--- src/k2.c.orig 2001-01-16 16:51:47.000000000 +0900
|
|
+++ src/k2.c
|
|
@@ -127,7 +127,7 @@ k2rom_h_table[] = {
|
|
"^", "\"", "_", "(maru)", "", ""};
|
|
|
|
|
|
-#define k2rom_buflen 10
|
|
+#define k2rom_buflen 11
|
|
|
|
static int
|
|
k2rom(c, n, type)
|
|
@@ -154,7 +154,7 @@ k2rom(c, n, type)
|
|
index_made = 1;
|
|
}
|
|
|
|
- buffer[k2rom_buflen] = '\0'; clen = k2rom_buflen;
|
|
+ buffer[k2rom_buflen - 1] = '\0'; clen = k2rom_buflen - 1;
|
|
for (i = 0; i < k2rom_buflen; ++ i) {
|
|
c1 = c[i].c1;
|
|
if ((0 < c1) && (c1 < 0x20))
|