diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | util.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Wed Mar 20 00:36:43 2002 Akinori MUSHA <knu@iDaemons.org> + + * util.c (ruby_getcwd): the content of buf is uncertain and must + not be printed when getcwd(buf, size) has failed. + Mon Mar 18 22:19:52 2002 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp> * ext/stringio/stringio.c (check_modifiable): wrong declaration. @@ -642,7 +642,7 @@ ruby_getcwd() char *buf = xmalloc(size); while (!getcwd(buf, size)) { - if (errno != ERANGE) rb_sys_fail(buf); + if (errno != ERANGE) rb_sys_fail(NULL); size *= 2; buf = xrealloc(buf, size); } |