Fixed strncpy vulnerability