summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--ext/io/console/console.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a32b2107b7..4b058a90fc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Mon Jun 13 23:50:25 2011 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/io/console/console.c (console_dev): typo.
+
Mon Jun 13 23:38:23 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (parser_parse_string): flush delayed token. based on a
diff --git a/ext/io/console/console.c b/ext/io/console/console.c
index 635c2afc9b..f83f81a917 100644
--- a/ext/io/console/console.c
+++ b/ext/io/console/console.c
@@ -587,7 +587,7 @@ console_dev(VALUE klass)
fptr->f2 = ofptr->f;
ofptr->f = 0;
# endif
- optr->mode |= FMODE_SYNC;
+ ofptr->mode |= FMODE_SYNC;
#endif
fptr->mode |= FMODE_SYNC;
rb_const_set(klass, id_console, con);