]> git.saurik.com Git - apple/libc.git/blobdiff - stdio/FreeBSD/ftell.c
Libc-1044.1.2.tar.gz
[apple/libc.git] / stdio / FreeBSD / ftell.c
index a0849d270979c091f54ad30d8a70cedd642585eb..8bb5716320daf55f61d15c5762bf09d059d9a6a4 100644 (file)
@@ -101,6 +101,8 @@ _ftello(fp, offset)
         * Find offset of underlying I/O object, then
         * adjust for buffered bytes.
         */
+       if (__sflush(fp))               /* may adjust seek offset on append stream */
+               return (1);
        if (fp->_flags & __SOFF)
                pos = fp->_offset;
        else {