mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
6bdae1594e
commit
2403d9188d
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Mon Jan 27 02:06:38 2003 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
|
* error.c (get_syserror): some Windows' errno have 5 digits.
|
||||||
|
|
||||||
Sun Jan 26 19:23:10 2003 NAKAMURA Usaku <usa@ruby-lang.org>
|
Sun Jan 26 19:23:10 2003 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
* instruby.rb ($mflags.set?): Check $make instead of $nmake, sinse
|
* instruby.rb ($mflags.set?): Check $make instead of $nmake, sinse
|
||||||
|
|
4
error.c
4
error.c
|
@ -495,8 +495,8 @@ get_syserr(int n)
|
||||||
VALUE error;
|
VALUE error;
|
||||||
|
|
||||||
if (!st_lookup(syserr_tbl, n, &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);
|
sprintf(name, "E%03d", n);
|
||||||
error = set_syserr(n, name);
|
error = set_syserr(n, name);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue