diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-03-19 15:45:53 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-03-19 15:45:53 +0000 |
commit | c76e05783072eb92ca586df32c1da2432a437814 (patch) | |
tree | 863dd6cad2d234bf80bc6958573aaef51897fdf2 /util.c | |
parent | 09b1fb78ea3397ea5c19ce35fd087f4924e4a3c4 (diff) | |
download | ruby-c76e05783072eb92ca586df32c1da2432a437814.tar.gz ruby-c76e05783072eb92ca586df32c1da2432a437814.tar.xz ruby-c76e05783072eb92ca586df32c1da2432a437814.zip |
* util.c (ruby_getcwd): the content of buf is uncertain and must
not be printed when getcwd(buf, size) has failed.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2226 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |