]>
Commit | Line | Data |
---|---|---|
224c7076 A |
1 | Index: ftell.c |
2 | =================================================================== | |
3 | RCS file: /cvs/root/Libc/stdio/FreeBSD/ftell.c,v | |
4 | retrieving revision 1.2 | |
5 | diff -u -d -b -w -p -p -r1.2 ftell.c | |
6 | --- ftell.c 2003/05/20 22:22:42 1.2 | |
7 | +++ ftell.c 2005/03/14 03:10:02 | |
8 | @@ -105,6 +105,8 @@ _ftello(fp, offset) | |
59e0d9fe A |
9 | * Find offset of underlying I/O object, then |
10 | * adjust for buffered bytes. | |
11 | */ | |
224c7076 A |
12 | + if (__sflush(fp)) /* may adjust seek offset on append stream */ |
13 | + return (1); | |
59e0d9fe A |
14 | if (fp->_flags & __SOFF) |
15 | pos = fp->_offset; | |
16 | else { |