summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-02-09 03:29:23 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-02-09 03:29:23 +0000
commitbcec81835dc263b933f2629aa5329f6c943da60d (patch)
treed9de5eead40ab6380ba7b9fc4b335565e718f6fe /error.c
parent8ef071c882218ff2d9f00f51f55e872343776104 (diff)
990209
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'error.c')
-rw-r--r--error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/error.c b/error.c
index 564358c83b..844ff76f61 100644
--- a/error.c
+++ b/error.c
@@ -702,7 +702,7 @@ rb_sys_fail(mesg)
err = strerror(errno);
if (mesg) {
- buf = ALLOCA_N(char, strlen(err)+strlen(mesg)+1);
+ buf = ALLOCA_N(char, strlen(err)+strlen(mesg)+4);
sprintf(buf, "%s - %s", err, mesg);
}
else {