From: cuz Date: Tue, 18 Jul 2000 21:30:48 +0000 (+0000) Subject: Fixed a bug X-Git-Tag: V2.12.0~3348 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e3a6f3b6e18213e0546254179f991795fb5669a2;p=cc65 Fixed a bug git-svn-id: svn://svn.cc65.org/cc65/trunk@166 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/libsrc/common/fdopen.c b/libsrc/common/fdopen.c index 896c98332..ee0f07ee5 100644 --- a/libsrc/common/fdopen.c +++ b/libsrc/common/fdopen.c @@ -20,7 +20,7 @@ FILE* fdopen (int handle, char* /*mode*/) /* Find a free file slot */ if (!(f = _fdesc ())) { /* No slots */ - errno = EMFILE; /* Too many files */ + _errno = EMFILE; /* Too many files */ return 0; }