Fixed strncpy buffer overflow