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

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2011-02-09 14:12:02 +00:00
parent e0258fa04b
commit 2cc0240078
2 changed files with 5 additions and 1 deletions

View file

@ -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)