summaryrefslogtreecommitdiff
path: root/signal.c
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-24 11:44:01 (GMT)
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-24 11:44:01 (GMT)
commita5e1dbf7c88d087afb19b0ea9e98191f4c3a65c5 (patch)
tree94c8be664a5c519f14c6a0412892a120170226f7 /signal.c
parent4f9e8a0f367e847a428bfdeb09d4ecd6fa5fc462 (diff)
* signal.c (check_reserved_signal_): fix write count since r47991.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'signal.c')
-rw-r--r--signal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/signal.c b/signal.c
index bbe36ff..85e01bf 100644
--- a/signal.c
+++ b/signal.c
@@ -888,8 +888,8 @@ check_reserved_signal_(const char *name, size_t name_len)
iov[3].iov_len = sizeof(msg2);
err = writev(2, iov, 4);
#else
- err = write(2, name, strlen(name));
- err = write(2, msg1, name_len);
+ err = write(2, name, name_len);
+ err = write(2, msg1, sizeof(msg1));
err = write(2, prev, strlen(prev));
err = write(2, msg2, sizeof(msg2));
#endif