From 2cc0240078cd9ac0064faf922ef0fa23eb1bf387 Mon Sep 17 00:00:00 2001 From: akr Date: Wed, 9 Feb 2011 14:12:02 +0000 Subject: [PATCH] * ext/pty/pty.c: parenthesize macro arguments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ ext/pty/pty.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 25add802ca..61f1df8266 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Wed Feb 9 23:11:27 2011 Tanaka Akira + + * ext/pty/pty.c: parenthesize macro arguments. + Tue Feb 8 11:47:11 2011 Loren Sands-Ramshaw * array.c: documentation clarification in rotate, rotate!, diff --git a/ext/pty/pty.c b/ext/pty/pty.c index 36392f2270..0c9f37e040 100644 --- a/ext/pty/pty.c +++ b/ext/pty/pty.c @@ -152,7 +152,7 @@ chfunc(void *data, char *errbuf, size_t errbuf_len) VALUE *argv = carg->argv; #define ERROR_EXIT(str) do { \ - strlcpy(errbuf, str, errbuf_len); \ + strlcpy(errbuf, (str), errbuf_len); \ return -1; \ } while (0)