fixed pointer passing in strncpy