]> git.sur5r.net Git - cc65/commitdiff
Fixed a bug
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 18 Jul 2000 21:30:48 +0000 (21:30 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 18 Jul 2000 21:30:48 +0000 (21:30 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@166 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/common/fdopen.c

index 896c98332a9b0fb570797abee62f52d8285be833..ee0f07ee59eb7a2e06720279493f18ecae6eea8a 100644 (file)
@@ -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;
     }