summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-01-26 17:09:16 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-01-26 17:09:16 +0000
commit2403d9188daf8bc6d753365bd84bc01ffeb515fd (patch)
treeb9d601d8e12a003627e8d7fbc280e1cf93333d29 /error.c
parent6bdae1594e30829f7645800972f3d0a6567f99f3 (diff)
* error.c (get_syserror): some Windows' errno have 5 digits.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'error.c')
-rw-r--r--error.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/error.c b/error.c
index 6f958aa..2723901 100644
--- a/error.c
+++ b/error.c
@@ -495,8 +495,8 @@ get_syserr(int n)
VALUE error;
if (!st_lookup(syserr_tbl, n, &error)) {
- char name[6];
-
+ char name[8]; /* some Windows' errno have 5 digits. */
+
sprintf(name, "E%03d", n);
error = set_syserr(n, name);
}