]> git.ozlabs.org Git - petitboot/commit
lib/fold: Handle extra mbrtowc return case
authorSamuel Mendoza-Jonas <sam.mj@au1.ibm.com>
Thu, 20 Aug 2015 06:32:25 +0000 (16:32 +1000)
committerSamuel Mendoza-Jonas <sam.mj@au1.ibm.com>
Tue, 25 Aug 2015 03:29:48 +0000 (13:29 +1000)
commit9818a3cd88578ffadb4ff3f5562e468e3b4b6f95
treee248fcb1a3813313516f9e11e633f047e548358e
parent1305a464f085200aa9adc77bcacfb1c771258c82
lib/fold: Handle extra mbrtowc return case

Commit 9781a370 ("Handle mblen return code when n is zero.") in glibc
changes the return value for when the number of bytes ('n') is zero.
Add an extra condition to detect if we've reached the end of the buffer.

Signed-off-by: Samuel Mendoza-Jonas <sam.mj@au1.ibm.com>
lib/fold/fold.c