[#1816] Ruby 1.5.3 under Tru64 (Alpha)? — Clemens Hintze <clemens.hintze@...>

Hi all,

17 messages 2000/03/14

[#1989] English Ruby/Gtk Tutorial? — schneik@...

18 messages 2000/03/17

[#2241] setter() for local variables — ts <decoux@...>

18 messages 2000/03/29

[ruby-talk:01799] Re: [ruby-1.5.3] path_check_1

From: matz@... (Yukihiro Matsumoto)
Date: 2000-03-10 09:14:49 UTC
List: ruby-talk #1799
In message "[ruby-talk:01790] [ruby-1.5.3] path_check_1"
    on 00/03/09, ts <decoux@moulon.inra.fr> writes:

| I don't understand these lines in file.c

(snip)

This is a genuine bug.  Here's the patch.

--- file.c	2000/03/07 08:37:30	1.15
+++ file.c	2000/03/10 09:00:45
@@ -1959,5 +1959,5 @@
 #ifdef HAVE_GETCWD
-	if (getcwd(path, sizeof(path)) == 0) return 0;
+	if (getcwd(buf, MAXPATHLEN) == 0) return 0;
 #else
-	if (getwd(path) == 0) return 0;
+	if (getwd(buf) == 0) return 0;
 #endif

In This Thread

Prev Next