summaryrefslogtreecommitdiff
path: root/ext/pty/pty.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-09 14:12:02 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-09 14:12:02 +0000
commit2cc0240078cd9ac0064faf922ef0fa23eb1bf387 (patch)
treeb0cbaa05a2ff6665856df986c1104a206a6bf1ce /ext/pty/pty.c
parente0258fa04bb96000ae50073cf2fe365fb6ac32b5 (diff)
* ext/pty/pty.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/pty/pty.c')
-rw-r--r--ext/pty/pty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pty/pty.c b/ext/pty/pty.c
index 36392f2..0c9f37e 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)