summaryrefslogtreecommitdiff
path: root/ext/pty/pty.c
diff options
context:
space:
mode:
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 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)