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

ruby-changes:18806

From: akr <ko1@a...>
Date: Wed, 9 Feb 2011 23:12:09 +0900 (JST)
Subject: [ruby-changes:18806] Ruby:r30831 (trunk): * ext/pty/pty.c: parenthesize macro arguments.

akr	2011-02-09 23:12:02 +0900 (Wed, 09 Feb 2011)

  New Revision: 30831

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30831

  Log:
    * ext/pty/pty.c: parenthesize macro arguments.

  Modified files:
    trunk/ChangeLog
    trunk/ext/pty/pty.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 30830)
+++ ChangeLog	(revision 30831)
@@ -1,3 +1,7 @@
+Wed Feb  9 23:11:27 2011  Tanaka Akira  <akr@f...>
+
+	* ext/pty/pty.c: parenthesize macro arguments.
+
 Tue Feb  8 11:47:11 2011  Loren Sands-Ramshaw  <lorensr@g...>
 
 	* array.c: documentation clarification in rotate, rotate!,
Index: ext/pty/pty.c
===================================================================
--- ext/pty/pty.c	(revision 30830)
+++ ext/pty/pty.c	(revision 30831)
@@ -152,7 +152,7 @@
     VALUE *argv = carg->argv;
 
 #define ERROR_EXIT(str) do { \
-	strlcpy(errbuf, str, errbuf_len); \
+	strlcpy(errbuf, (str), errbuf_len); \
 	return -1; \
     } while (0)
 

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

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