strncpy bug fix

Fill tail of dest with zeroes if src size < n, as defined in http://www.unix.com/man-page/posix/3posix/strncpy/