Fixed buffer overflow issue - used memset for the
full size of the buffer, as well as adding an
extra 1 to the num of bytes specified in strncpy