Add a patch to fix a bug. The patch was already forwarded to the

author.

Submitted by:	akira yamada <akira@ruby-lang.org>
This commit is contained in:
Akinori MUSHA 2001-03-19 20:36:05 +00:00
parent fb028a75d4
commit 67a55c471a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=40066
2 changed files with 14 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= kakasi
PORTVERSION= 000124
PORTREVISION= 1
CATEGORIES= japanese ruby
MASTER_SITES= http://www.notwork.org/~gotoken/ruby/p/kakasi/
DIST_SUBDIR= ruby

View File

@ -0,0 +1,13 @@
--- kakasi.c~ Sun Jan 23 19:16:28 2000
+++ kakasi.c Wed Mar 14 15:26:42 2001
@@ -70,7 +70,9 @@
while (i < RSTRING(src)->len) {
if (*(RSTRING(src)->ptr + i) != '\0') {
buf = kakasi_do((RSTRING(src)->ptr + i));
- rb_str_concat(dst, rb_str_new2(buf));
+ if (buf) {
+ rb_str_concat(dst, rb_str_new2(buf));
+ }
free(buf);
while (*(RSTRING(src)->ptr + i) != '\0') {
i++;