]> git.tuebingen.mpg.de Git - paraslash.git/commit
aac_afh: Be more lenient about zero sized reads.
authorAndre Noll <maan@tuebingen.mpg.de>
Wed, 18 Aug 2021 14:44:15 +0000 (16:44 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Sat, 12 Mar 2022 17:35:17 +0000 (18:35 +0100)
commitcc2649458c2b732128cb2f10ab1c595ef9853349
treeefa8cc765444b6b64ccd7a937a8ba9904a0dbd26
parentc47bac4746444a5338649646fb4d6e9d69cf12c3
aac_afh: Be more lenient about zero sized reads.

These actually happen for example when the file contains a meta
tag with an empty string value. POSIX says that the read() function
shall return zero and have no other results, so don't return -1 if
the number of bytes read is zero.

Similarly, return zero if the file offset is beyond EOF.
aac_afh.c