Files
minidlna/upnphttp.c
Henner Zeller 630ccd27d5 Fix infinite loop on premature end-of-file.
When files end early, read() will return with a zero return code.
Before this patch, this would result in an infinite loop
as no progress is ever made.

Treat this gracefully and finish copying.

(This came up reading generated files from a fuse-filesystem
whose initial predicted stat() filesise didn't match the final size)
2019-11-09 20:51:53 -08:00

52 KiB