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:
parent
fb028a75d4
commit
67a55c471a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=40066
@ -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
|
||||
|
13
japanese/ruby-kakasi/files/patch-kakasi.c
Normal file
13
japanese/ruby-kakasi/files/patch-kakasi.c
Normal 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++;
|
Loading…
Reference in New Issue
Block a user