]> git.sur5r.net Git - cc65/blobdiff - libsrc/common/ftell.c
The spans do now contain the size of a span, no longer the end offset.
[cc65] / libsrc / common / ftell.c
index 4e4746e03fc1495b6ff315f388ff82a3848a8225..9882cfc057a18cb87a2f7f8dc850701c24d979dd 100644 (file)
@@ -26,7 +26,7 @@ long __fastcall__ ftell (register FILE* f)
 
     /* Is the file open? */
     if ((f->f_flags & _FOPEN) == 0) {
-        _errno = EINVAL;                /* File not open */
+        _seterrno (EINVAL);                /* File not open */
         return -1L;
     }