[Bug 4670] fopencookie custom IO stream behaviour without buffering differs from GNU C
bugzilla at busybox.net
bugzilla at busybox.net
Thu Jan 5 07:55:35 UTC 2012
https://bugs.busybox.net/show_bug.cgi?id=4670
--- Comment #1 from Leonid <lly.dev at gmail.com> 2012-01-05 07:55:35 UTC ---
If you will rework log_writer() function from your sample to not to print
bytes/symbols after "size" buffer length, than you discover that functionality
not broken in uClibc:
Output is:
size '6'; buffer 'TEST::'
size '4'; buffer 'test'
size '6'; buffer '::TEST'
i.e. complete output will be 'TEST::test::TEST', as expected.
P.S. fopencookie man pages never promise that input buffer "buf" must have '\0'
after "size" bytes.
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the uClibc-cvs
mailing list