diff --git a/upnphttp.c b/upnphttp.c index 7ea193e..5cf500b 100644 --- a/upnphttp.c +++ b/upnphttp.c @@ -1264,7 +1264,7 @@ send_file(struct upnphttp * h, int sendfd, off_t offset, off_t end_offset) int try_sendfile = 1; #endif - while( offset < end_offset ) + while( offset <= end_offset ) { #if HAVE_SENDFILE if( try_sendfile )