This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/6544] fseek(..., 0, SEEK_END) doesn't work as it should on fmemopen's FILE
- From: "drepper at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 14 Aug 2008 06:34:59 -0000
- Subject: [Bug libc/6544] fseek(..., 0, SEEK_END) doesn't work as it should on fmemopen's FILE
- References: <20080522062629.6544.witekfl@poczta.onet.pl>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From drepper at redhat dot com 2008-08-14 06:34 -------
The patch cannot be used as is. Existing code might expect the current behavior.
Instead I implement a binary mode, selected through 'b' in the mode string. It
seems this is done in your code so you should not have to make any changes. In
the binary mode we do the search as you proposed and writes don't add a NUL byte.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://sourceware.org/bugzilla/show_bug.cgi?id=6544
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.