pkgsrc/textproc/chasen-base/patches/patch-ao
taca 2059300631 Fix two problem noted on tech-pkg-ja mailing list.
- Remove Windows specific (and slightly broken) patch file;
  chasen-2.3.3.20030822.patch, originally noted by Makoto Fujiwara.
- Fix crash with SEGV when using "%r" output format, noted by Akio Obata.

Bump PKGREVISION.
2005-08-18 15:37:17 +00:00

16 lines
408 B
Text

$NetBSD: patch-ao,v 1.1 2005/08/18 15:37:17 taca Exp $
--- lib/print.c.orig 2005-08-15 10:50:12.000000000 +0900
+++ lib/print.c
@@ -326,6 +326,11 @@ set_ruby(char *dest, char *midasi, char
int stat = 0;
int plen, maxplen = 0;
+ if (yomi[0] == '\0') {
+ strcpy(d, m);
+ return;
+ }
+
for (;;) {
for (; *y; y += cha_tok_mblen(Cha_tokenizer, y, 4 /* XXX */)) {
if (stat == 0) {