luohaha / CSpider

A scalable and convenient crawler framework in C:).
https://github.com/luohaha/CSpider
MIT License
367 stars 98 forks source link

Add +1 on strlen to account for null-terminator #9

Closed tijko closed 8 years ago

tijko commented 8 years ago

In the addUrl function of core/pageProcessor/user_api.c the url being copied wasn't accounting for the space to null terminate the destination string.

luohaha commented 8 years ago

Thank you so much for your PR.