riolet / WAFer

WAFer is a C language-based software platform for scalable server-side and networking applications. Think node.js for C programmers.
GNU General Public License v2.0
693 stars 69 forks source link

Avoid buffer overflow with strncpy. #24

Closed jan-schreib closed 10 years ago

jan-schreib commented 10 years ago

As mentioned in #3 the size of req.filename is 512 and url is twice the size. Strncpy is the better choice here.