diff options
-rw-r--r-- | japanese/ruby-kakasi/Makefile | 1 | ||||
-rw-r--r-- | japanese/ruby-kakasi/files/patch-kakasi.c | 13 |
2 files changed, 14 insertions, 0 deletions
diff --git a/japanese/ruby-kakasi/Makefile b/japanese/ruby-kakasi/Makefile index 00497db6e379..5b25e5dc2ff9 100644 --- a/japanese/ruby-kakasi/Makefile +++ b/japanese/ruby-kakasi/Makefile @@ -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 diff --git a/japanese/ruby-kakasi/files/patch-kakasi.c b/japanese/ruby-kakasi/files/patch-kakasi.c new file mode 100644 index 000000000000..e56e8f2be75f --- /dev/null +++ b/japanese/ruby-kakasi/files/patch-kakasi.c @@ -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++; |