Fix off-by-one error in remote urllist parsing.
Pass buf and buflen to parse_urls rather than whole chunk structure.