[前][次][番号順一覧][スレッド一覧]

ruby-changes:45283

From: nagachika <ko1@a...>
Date: Tue, 17 Jan 2017 20:13:33 +0900 (JST)
Subject: [ruby-changes:45283] nagachika:r57356 (ruby_2_3): win32/win32.c: fix r57351. rename PATH_MAX to MAX_PATH.

nagachika	2017-01-17 20:13:28 +0900 (Tue, 17 Jan 2017)

  New Revision: 57356

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57356

  Log:
    win32/win32.c: fix r57351. rename PATH_MAX to MAX_PATH.

  Modified files:
    branches/ruby_2_3/win32/win32.c
Index: ruby_2_3/win32/win32.c
===================================================================
--- ruby_2_3/win32/win32.c	(revision 57355)
+++ ruby_2_3/win32/win32.c	(revision 57356)
@@ -5442,7 +5442,7 @@ winnt_stat(const WCHAR *path, struct sta https://github.com/ruby/ruby/blob/trunk/ruby_2_3/win32/win32.c#L5442
 	}
 	st->st_mode = fileattr_to_unixmode(attr, path);
 	if (len) {
-	    finalname[min(len, PATH_MAX-1)] = L'\0';
+	    finalname[min(len, MAX_PATH-1)] = L'\0';
 	    path = finalname;
 	    if (wcsncmp(path, namespace_prefix, numberof(namespace_prefix)) == 0)
 		path += numberof(namespace_prefix);

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]