Skip to content

Commit

Permalink
* io.c (appendline): remove invalid access.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
mame committed Jul 16, 2008
1 parent 1b2af06 commit 27bf963
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Thu Jul 17 01:27:38 2008 Yusuke Endoh <[email protected]>

* io.c (appendline): remove invalid access.

Wed Jul 16 18:04:34 2008 Nobuyoshi Nakada <[email protected]>

* signal.c (signal_exec, trap_handler): trap accepts a string as
Expand Down
2 changes: 1 addition & 1 deletion io.c
Original file line number Diff line number Diff line change
Expand Up @@ -1762,7 +1762,7 @@ appendline(rb_io_t *fptr, int delim, VALUE *strp, long *lp)
}
if (limit > 0 && limit == pending) {
char *p = fptr->rbuf+fptr->rbuf_off;
char *pp = p + limit;
char *pp = p + limit - 1;
char *pl = rb_enc_left_char_head(p, pp, enc);

if (pl < pp) {
Expand Down

0 comments on commit 27bf963

Please sign in to comment.